1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Added bloom shader and screenspace effect helpers as examples for the SDK.

This commit is contained in:
Joe Ludwig
2013-07-30 15:10:15 -07:00
parent e4acadd6b1
commit e38213b8fe
13 changed files with 658 additions and 0 deletions

View File

@ -0,0 +1,18 @@
//======= Copyright <20> 1996-2006, Valve Corporation, All rights reserved. ======
#define CONVERT_TO_SRGB 0
#include "common_ps_fxc.h"
sampler TexSampler : register( s0 );
struct PS_INPUT
{
HALF2 baseTexCoord : TEXCOORD0; // Base texture coordinate
};
float4 main( PS_INPUT i ) : COLOR
{
float4 result = tex2D( TexSampler, i.baseTexCoord );
result.a = 1.0f;
return result; //FinalOutput( result, 0, PIXEL_FOG_TYPE_NONE, TONEMAP_SCALE_NONE );
}