1 Shader "Hidden/PostProcessing/SubpixelMorphologicalAntialiasing"
5 #pragma exclude_renderers d3d11_9x
11 Cull Off ZWrite Off ZTest Always
13 // 0 - Edge detection (Low)
18 #pragma vertex VertEdge
19 #pragma fragment FragEdge
20 #define SMAA_PRESET_LOW
21 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
26 // 1 - Edge detection (Medium)
31 #pragma vertex VertEdge
32 #pragma fragment FragEdge
33 #define SMAA_PRESET_MEDIUM
34 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
39 // 2 - Edge detection (High)
44 #pragma vertex VertEdge
45 #pragma fragment FragEdge
46 #define SMAA_PRESET_HIGH
47 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
52 // 3 - Blend Weights Calculation (Low)
57 #pragma vertex VertBlend
58 #pragma fragment FragBlend
59 #define SMAA_PRESET_LOW
60 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
65 // 4 - Blend Weights Calculation (Medium)
70 #pragma vertex VertBlend
71 #pragma fragment FragBlend
72 #define SMAA_PRESET_MEDIUM
73 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
78 // 5 - Blend Weights Calculation (High)
83 #pragma vertex VertBlend
84 #pragma fragment FragBlend
85 #define SMAA_PRESET_HIGH
86 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
91 // 6 - Neighborhood Blending
96 #pragma vertex VertNeighbor
97 #pragma fragment FragNeighbor
98 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"