fix small oopsie doopsie of last commit

This commit is contained in:
Xonk
2025-04-16 17:32:13 -04:00
parent 32a35e2225
commit 6baf5f4a6b

View File

@ -652,6 +652,8 @@ vec3 SubsurfaceScattering_sun(vec3 albedo, float Scattering, float Density, floa
#if SSS_TYPE == 3
scatter *= pow(Density, LabSSS_Curve);
#else
if(Density < 0.01) scatter = vec3(0.0);
#endif
scatter *= 1.0 + CustomPhase(lightPos)*6.0; // ~10x brighter at the peak