tree sway and shadow improvements
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.2 / PostProcessing / Shaders / Builtins / SubpixelMorphologicalAntialiasing.shader
blob8c582c9504e46ed39fd313802a0b38f1b74a1fc1
1 Shader "Hidden/PostProcessing/SubpixelMorphologicalAntialiasing"
3     HLSLINCLUDE
5         #pragma exclude_renderers d3d11_9x
7     ENDHLSL
9     SubShader
10     {
11         Cull Off ZWrite Off ZTest Always
13         // 0 - Edge detection (Low)
14         Pass
15         {
16             HLSLPROGRAM
18                 #pragma vertex VertEdge
19                 #pragma fragment FragEdge
20                 #define SMAA_PRESET_LOW
21                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
23             ENDHLSL
24         }
26         // 1 - Edge detection (Medium)
27         Pass
28         {
29             HLSLPROGRAM
31                 #pragma vertex VertEdge
32                 #pragma fragment FragEdge
33                 #define SMAA_PRESET_MEDIUM
34                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
36             ENDHLSL
37         }
39         // 2 - Edge detection (High)
40         Pass
41         {
42             HLSLPROGRAM
44                 #pragma vertex VertEdge
45                 #pragma fragment FragEdge
46                 #define SMAA_PRESET_HIGH
47                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
49             ENDHLSL
50         }
52         // 3 - Blend Weights Calculation (Low)
53         Pass
54         {
55             HLSLPROGRAM
57                 #pragma vertex VertBlend
58                 #pragma fragment FragBlend
59                 #define SMAA_PRESET_LOW
60                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
62             ENDHLSL
63         }
65         // 4 - Blend Weights Calculation (Medium)
66         Pass
67         {
68             HLSLPROGRAM
70                 #pragma vertex VertBlend
71                 #pragma fragment FragBlend
72                 #define SMAA_PRESET_MEDIUM
73                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
75             ENDHLSL
76         }
78         // 5 - Blend Weights Calculation (High)
79         Pass
80         {
81             HLSLPROGRAM
83                 #pragma vertex VertBlend
84                 #pragma fragment FragBlend
85                 #define SMAA_PRESET_HIGH
86                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
88             ENDHLSL
89         }
91         // 6 - Neighborhood Blending
92         Pass
93         {
94             HLSLPROGRAM
96                 #pragma vertex VertNeighbor
97                 #pragma fragment FragNeighbor
98                 #include "SubpixelMorphologicalAntialiasingBridge.hlsl"
100             ENDHLSL
101         }
102     }