diff options
| author | yum <yum.food.vr@gmail.com> | 2024-05-26 18:33:46 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-05-26 18:33:46 -0700 |
| commit | 33b2b8a3ab0ddea85c7a3f03f918fe5ee6874426 (patch) | |
| tree | 961636e8cd124cba4d163d7fc93e321a650b746f /tooner_lighting.cginc | |
| parent | 225ff402428d2d37c150028bf129f7450368c058 (diff) | |
Add transparent & transclipping rendering modes
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 3 |
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; } |
