mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-08 00:02:58 +12:00
Shadergen: Move fog colour to uniform
This commit is contained in:
parent
33cb3d9c9f
commit
32ddc28789
4 changed files with 7 additions and 12 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue