⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hsv_ps20.fxc

📁 hl2 source code. Do not use it illegal.
💻 FXC
字号:
#include "common_ps_fxc.h"

sampler BaseTextureSampler	: register( s0 );

struct PS_INPUT
{
	float2 baseTexCoord				: TEXCOORD0;
};
	   
HALF4 main( PS_INPUT i ) : COLOR
{
	HALF4 result;
	HALF4 baseColor; 
	HALF maxValue;

	baseColor = tex2D( BaseTextureSampler, i.baseTexCoord );
	maxValue = max( baseColor.r, baseColor.g );
	maxValue = max( baseColor.b, maxValue );
	result = maxValue;
	result.a = 1.0f;
	return result;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -