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

@ -726,8 +726,10 @@ void main() {
#if RESOURCEPACK_SKY == 1
Background += toLinear(texture2D(colortex10, texcoord).rgb * (255.0 * 2.0));
#endif
#ifndef ambientLight_only
Background += drawSun(dot(lightCol.a * WsunVec, feetPlayerPos_normalized),0, DirectLightColor,vec3(0.0));
Background += drawMoon(feetPlayerPos_normalized, lightCol.a * WsunVec, DirectLightColor*20, Background);
#endif
#endif