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.

24 lines
567 B

  1. //========== Copyright (c) Valve Corporation, All rights reserved. ==========//
  2. #include "common_ps_fxc.h"
  3. sampler BaseTextureSampler : register( s0 );
  4. struct PS_INPUT
  5. {
  6. float2 baseTexCoord : TEXCOORD0;
  7. };
  8. HALF4 main( PS_INPUT i ) : COLOR
  9. {
  10. float4 result;
  11. float4 baseColor;
  12. float maxValue;
  13. baseColor = tex2D( BaseTextureSampler, i.baseTexCoord );
  14. maxValue = max( baseColor.r, baseColor.g );
  15. maxValue = max( baseColor.b, maxValue );
  16. result = maxValue;
  17. result.a = 1.0f;
  18. return FinalOutput( result, 0, PIXEL_FOG_TYPE_NONE, TONEMAP_SCALE_NONE );
  19. }