Fix ENTITIES TRANSLUCENT programs, and ambient light not working in end/nether

This commit is contained in:
Xonk
2024-01-11 21:54:25 -05:00
parent 57ffa75366
commit 339829f952
6 changed files with 14 additions and 13 deletions

View File

@ -3,6 +3,7 @@ vec3 DoAmbientLightColor(
vec3 TorchColor,
vec2 Lightmap
){
// do sky lighting.
float skyLM = (pow(Lightmap.y,15.0)*2.0 + pow(Lightmap.y,2.5))*0.5;
SkyColor = (SkyColor / 30.0) * ambient_brightness * skyLM;