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.

19 lines
486 B

  1. struct PS_INPUT
  2. {
  3. float4 T0 : TEXCOORD0;
  4. float3 T1 : TEXCOORD1;
  5. float3 T2 : TEXCOORD2;
  6. float T3 : TEXCOORD3;
  7. float3 vColor : COLOR0;
  8. };
  9. float4 main( PS_INPUT i ) : COLOR
  10. {
  11. // Kill pixel against various fields computed in vertex shader
  12. clip ( i.T1 );
  13. clip ( i.T2 );
  14. clip ( i.T3 ); // Backface cull
  15. // i.T0.a is uninitialized by the vs, but this is how the original asm shader was written????
  16. return float4( lerp( float3(1,1,1), i.vColor.xyz, i.T0.a ), 1 );
  17. }