summaryrefslogtreecommitdiffstats
path: root/tooner_lighting.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'tooner_lighting.cginc')
-rw-r--r--tooner_lighting.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc
index f31dbd1..6a0dd87 100644
--- a/tooner_lighting.cginc
+++ b/tooner_lighting.cginc
@@ -897,6 +897,9 @@ float4 effect(inout v2f i)
result = lerp(result, al_color, _Explode_Phase * _Explode_Phase);
}
#endif
+#if defined(_RENDERING_TRANSPARENT) || defined(_RENDERING_TRANSCLIPPING)
+ result.rgb *= result.a;
+#endif
return result;
}