diff options
Diffstat (limited to '2ner.cginc')
| -rw-r--r-- | 2ner.cginc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -114,9 +114,6 @@ float4 frag(v2f i) : SV_Target { #if defined(_EYE_EFFECT_00)
pbr.normal = eye_effect_00.normal;
#endif
-#if defined(EXTRA_STENCIL_COLOR_PASS)
- pbr.albedo = _ExtraStencilColor;
-#endif
UNITY_BRANCH
if (_Mode == 1) {
@@ -124,6 +121,10 @@ float4 frag(v2f i) : SV_Target { pbr.albedo.a = 1;
}
+#if defined(EXTRA_STENCIL_COLOR_PASS)
+ pbr.albedo = _ExtraStencilColor;
+#endif
+
#if defined(FORWARD_BASE_PASS)
applyMatcapsAndRimLighting(i, pbr);
#endif
|
