Counter Strike : Global Offensive Source Code
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.

31 lines
786 B

  1. //========= Copyright � 1996-2007, Valve Corporation, All rights reserved. ============//
  2. #include "shader_constant_register_map.h"
  3. #include "common_fog_ps_fxc.h"
  4. sampler BaseSampler1 : register( s1 ); // Base map 1
  5. struct PS_INPUT
  6. {
  7. float4 projPos : POSITION;
  8. float2 vBaseTexCoord : TEXCOORD0;
  9. };
  10. float4 main( PS_INPUT i ) : COLOR
  11. {
  12. // [smessick] removed for PC build of cstrike15.
  13. //#if !defined( _X360 )
  14. // if ( i.vBaseTexCoord.x < 0.0 || i.vBaseTexCoord.x > 1.0 || i.vBaseTexCoord.y < 0.0 || i.vBaseTexCoord.y > 1.0 )
  15. // {
  16. // discard;
  17. // }
  18. //#endif
  19. float3 vResult = tex2D( BaseSampler1, i.vBaseTexCoord.xy ) * cFlashlightColor.rgb;
  20. float fogFactor = 0.0f;
  21. return FinalOutput( float4( vResult, 1.0 ), fogFactor, PIXELFOGTYPE, TONEMAP_SCALE_LINEAR );
  22. }