Merge pull request #106844 from LiveTrower/dfg-reconstruction

Fix missing ibl reconstruction from DFG multiscattering
This commit is contained in:
Thaddeus Crews
2025-05-28 09:47:41 -05:00

View File

@ -2078,7 +2078,7 @@ void fragment_shader(in SceneData scene_data) {
// cheap luminance approximation
float f90 = clamp(50.0 * f0.g, metallic, 1.0);
indirect_specular_light *= energy_compensation * (f90 * envBRDF.x + f0 * envBRDF.y);
indirect_specular_light *= energy_compensation * ((f90 - f0) * envBRDF.x + f0 * envBRDF.y);
#endif
}