Skip to content

Commit e1e1933

Browse files
authored
fix missing ibl reconstruction from dfg multiscattering
1 parent 45fc515 commit e1e1933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ void fragment_shader(in SceneData scene_data) {
20782078

20792079
// cheap luminance approximation
20802080
float f90 = clamp(50.0 * f0.g, metallic, 1.0);
2081-
indirect_specular_light *= energy_compensation * (f90 * envBRDF.x + f0 * envBRDF.y);
2081+
indirect_specular_light *= energy_compensation * ((f90 - f0) * envBRDF.x + f0 * envBRDF.y);
20822082
#endif
20832083
}
20842084

0 commit comments

Comments
 (0)