Want more features on Pastebin? Sign Up, it's FREE!
Guest

2d_blur.psh

By: a guest on Jun 17th, 2012  |  syntax: C++  |  size: 1.67 KB  |  views: 133  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. FORMÁPSHPFORMµ0000PSRCí//hlsl ps_2_0
  2.  
  3. #include "pixel_program/include/pixel_shader_constants.inc"
  4. #include "pixel_program/include/functions.inc"
  5.  
  6. sampler s0 : register(s0);
  7.  
  8. float4 main
  9. (
  10.         in float2 textureCoordinates  : TEXCOORD0
  11. )
  12. : COLOR
  13. {
  14.         float4 result = 0.0f;
  15.         float2 textureCoordinateOffsets = 0.0f;
  16.         for (int i = 0; i < 16; ++i, textureCoordinateOffsets += userConstants[16].xy)
  17.                 result += tex2D(s0, textureCoordinates + textureCoordinateOffsets) * userConstants[i];
  18.  
  19.         return result;
  20. }
  21. PEXE´ÿÿþÿ-CTABÿÿxDHXhs0« userConstants««ps_2_0Microsoft (R) D3DX9 Shader Compiler 4.09.00.1126Q `ApAQ  A0A@APAQ À@à@AAQ @@@€@ @€°    €ä°ä  €ä €  ä€ä°€ ä€U ä°€ 䀪 ä°€ ä€ÿ ä°€ 䀠䰀 ä€U ä°€ 䀪 ä°€ ä€ÿ ä°€ 䀠ä°B
  22. €    ä€ä B    €ä°ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä 
  23. €
  24. ä€   ä   €    ä€ä 
  25. 䀀ä€
  26. ä     ä€€ä€ ä ä€€ä€ ä ä€€ä€
  27. ä ä€€ä€ä ä€€ä€ä ä€€ä€ä ä€€ä€ä ä€€ä€ä ä€€ ä€U ä°€ 䀪 ä°€ ä€ÿ ä°€ 䀠ä°€ ä€U ä°B€ä€ä B€ä€ä B€ä€ä B€ä€ä B€ä€ä €ä€ä ä€€ä€ä ä€€ä€ä ä€€ä€ä ä€€ä€ä ä€€ä€ÿÿ
clone this paste RAW Paste Data