Fix applying AO twice for lighting in Forward shading and use correct specular occlusion on reflections

#3717
This commit is contained in:
2026-02-10 22:50:32 +01:00
parent 9c8023d64f
commit e851efa0a8
3 changed files with 12 additions and 5 deletions
@@ -142,11 +142,11 @@ void PS_Forward(
#endif
#endif
light.rgb += reflections * GetReflectionSpecularLighting(ViewPos, gBuffer) * light.a;
light.rgb += reflections * GetReflectionSpecularLighting(ViewPos, gBuffer) * light.a;
#endif
// Add lighting (apply ambient occlusion)
output.rgb += light.rgb * gBuffer.AO;
// Add lighting
output.rgb += light.rgb;
#endif