Merge branch 'main' into optimisations-from-gemini

This commit is contained in:
DeMuenu
2026-05-27 11:45:12 +02:00
committed by GitHub
4 changed files with 19 additions and 5 deletions
+1 -2
View File
@@ -186,7 +186,7 @@ Shader "DeMuenu/World/Hoppou/WaterFlat_2SP"
float4 ShadowCasterMult_1 = 1;
float4 ShadowCasterMult_2 = 1;
if (shadowCastingEnabled)
if ((((_Udon_ShadowMapIndex[LightCounter] > 0.5) && (_Udon_ShadowMapIndex[LightCounter] < 1.5) && (_EnableShadowCasting > 0.5)) || (_Udon_ShadowMapIndex[LightCounter] > 2.5)) && _EnableShadowCasting)
{
half smIndex = _Udon_ShadowMapIndex[LightCounter];
if ((smIndex > 0.5 && smIndex < 1.5) || smIndex > 2.5)
@@ -216,7 +216,6 @@ Shader "DeMuenu/World/Hoppou/WaterFlat_2SP"
//dmax = dmax + contrib * float4(LightColor, 1); // accumulate light contributions
}
//dmax.xyz = min(dmax * dIntensity, 1.0);