Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
471 B

  1. #define HDRTYPE HDR_TYPE_NONE
  2. #include "common_ps_fxc.h"
  3. struct PS_INPUT
  4. {
  5. float2 texCoord0 : TEXCOORD0;
  6. float2 texCoord1 : TEXCOORD3;
  7. };
  8. sampler BaseTextureSampler : register( s0 );
  9. sampler DetailTextureSampler : register( s3 );
  10. float4 main( PS_INPUT i ) : COLOR
  11. {
  12. // Sample frames from texture 0
  13. float4 base= tex2D( BaseTextureSampler, i.texCoord0 );
  14. float4 detail=tex2D( DetailTextureSampler, i.texCoord1 );
  15. return float4(base.rgb, base.a * detail.a);
  16. }