@@ -18,6 +18,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
18
18
19
19
#pragma vertex VertDefault
20
20
#pragma fragment FragAO
21
+ #pragma multi_compile _ APPLY_FORWARD_FOG
21
22
#pragma multi_compile _ FOG_LINEAR FOG_EXP FOG_EXP2
22
23
#define SOURCE_DEPTH
23
24
#include "ScalableAO.hlsl"
@@ -32,6 +33,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
32
33
33
34
#pragma vertex VertDefault
34
35
#pragma fragment FragAO
36
+ #pragma multi_compile _ APPLY_FORWARD_FOG
35
37
#pragma multi_compile _ FOG_LINEAR FOG_EXP FOG_EXP2
36
38
#define SOURCE_GBUFFER
37
39
#include "ScalableAO.hlsl"
@@ -54,7 +56,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
54
56
ENDHLSL
55
57
}
56
58
57
- // 4 - Separable blur (horizontal pass) with G-Buffer
59
+ // 3 - Separable blur (horizontal pass) with G-Buffer
58
60
Pass
59
61
{
60
62
HLSLPROGRAM
@@ -69,7 +71,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
69
71
ENDHLSL
70
72
}
71
73
72
- // 5 - Separable blur (vertical pass)
74
+ // 4 - Separable blur (vertical pass)
73
75
Pass
74
76
{
75
77
HLSLPROGRAM
@@ -82,7 +84,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
82
84
ENDHLSL
83
85
}
84
86
85
- // 6 - Final composition
87
+ // 5 - Final composition
86
88
Pass
87
89
{
88
90
Blend Zero OneMinusSrcColor , Zero OneMinusSrcAlpha
@@ -96,7 +98,7 @@ Shader "Hidden/PostProcessing/ScalableAO"
96
98
ENDHLSL
97
99
}
98
100
99
- // 7 - Final composition (ambient only mode)
101
+ // 6 - Final composition (ambient only mode)
100
102
Pass
101
103
{
102
104
Blend Zero OneMinusSrcColor , Zero OneMinusSrcAlpha
0 commit comments