fix mob SSS not working. added moonphase based moonlight brightness setting.

This commit is contained in:
Xonk
2023-10-20 21:24:50 -04:00
parent 80c310611b
commit eaace81958
6 changed files with 26 additions and 7 deletions

View File

@ -238,6 +238,11 @@ vec4 renderClouds(
SunColor = SunColor * clamp(dV_Sun.y ,0.0,1.0);
MoonColor *= clamp(-dV_Sun.y,0.0,1.0);
#ifdef ambientLight_only
SunColor = vec3(0.0);
MoonColor = vec3(0.0);
#endif
if(dV_Sun.y/shadowStep < -0.1) dV_Sun = -dV_Sun;
float mieDay = phaseg(SdotV, 0.75);