Guest User

Untitled

a guest
Jan 5th, 2014
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #if (FXAA_HLSL_5 == 1)
  2. struct FxaaTex { SamplerState smpl; Texture2D tex; };
  3. #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)
  4. #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)
  5. #define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)
  6. #define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)
  7. #define FxaaDiscard clip(-1)
  8. #define FxaaSat(x) saturate(x)
  9.  
  10. #elif (FXAA_HLSL_4 == 1)
  11. struct FxaaTex { SamplerState smpl; Texture2D tex; };
  12. #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)
  13. #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)
  14. #define FxaaDiscard clip(-1)
  15. #define FxaaSat(x) saturate(x)
  16. #endif
RAW Paste Data