Shadergen: Move fog colour to uniform

This commit is contained in:
wheremyfoodat 2024-07-25 20:18:30 +03:00
parent 33cb3d9c9f
commit 32ddc28789
4 changed files with 7 additions and 12 deletions

View file

@ -903,6 +903,8 @@ OpenGL::Program& RendererGL::getSpecializedShader() {
vec[3] = float((color >> 24) & 0xFF) / 255.0f;
}
uniforms.fogColor = regs[PICA::InternalRegs::FogColor];
// Append lighting uniforms
if (fsConfig.lighting.enable) {
uniforms.globalAmbientLight = regs[InternalRegs::LightGlobalAmbient];