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.

24 lines
509 B

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #include "common_ps_fxc.h"
  7. sampler EnvmapSampler : register( s0 );
  8. struct PS_INPUT
  9. {
  10. float3 eyeToVertVector : TEXCOORD0;
  11. float4 vertexColor : COLOR;
  12. };
  13. HALF4 main( PS_INPUT i ) : COLOR
  14. {
  15. HALF4 color;
  16. color.xyz = texCUBE( EnvmapSampler, i.eyeToVertVector );
  17. color.a = 1.0f;
  18. color *= i.vertexColor;
  19. return color;
  20. }