source-engine/materialsystem/stdshaders/filmdust_ps20.fxc
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

19 lines
383 B
Plaintext

#define HDRTYPE HDR_TYPE_NONE
#include "common_ps_fxc.h"
sampler FilmDustSampler : register( s0 );
const float4 vChannelSelect : register( c0 );
struct PS_INPUT
{
float2 grainTexCoord : TEXCOORD0;
};
float4 main( PS_INPUT i ) : COLOR
{
float4 noise = dot( tex2D( FilmDustSampler, i.grainTexCoord ), vChannelSelect );
return float4( noise.x, noise.y, noise.z, 1.0 );
}