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.

22 lines
544 B

  1. //========== Copyright (c) Valve Corporation, All rights reserved. ==========//
  2. sampler g_texSampler : register( s0 );
  3. struct PS_INPUT
  4. {
  5. float2 uv : TEXCOORD0;
  6. };
  7. float2 g_vPsTapOffsets[2] : register( c0 );
  8. float4 main( PS_INPUT i ) : COLOR
  9. {
  10. float4 cOut;
  11. cOut = 0.25 * tex2D( g_texSampler, i.uv + g_vPsTapOffsets[0] );
  12. cOut += 0.25 * tex2D( g_texSampler, i.uv - g_vPsTapOffsets[0] );
  13. cOut += 0.25 * tex2D( g_texSampler, i.uv + g_vPsTapOffsets[1] );
  14. cOut += 0.25 * tex2D( g_texSampler, i.uv - g_vPsTapOffsets[1] );
  15. return cOut;
  16. }