This commit is contained in:
TheRedShip
2025-02-22 18:26:25 +01:00
parent d7b33309d8
commit aead7501f1
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void main()
totalWeight += weight;
}
}
light * (1.0 / totalWeight);
light *= (1.0 / totalWeight);
if (u_pass == u_pass_count - 1)
{
vec4 color = light * imageLoad(color_texture, pixel_coords);