diff --git a/src/Shaders/pbr.fragment.fx b/src/Shaders/pbr.fragment.fx index 413e706ac39..b193e72a1e4 100644 --- a/src/Shaders/pbr.fragment.fx +++ b/src/Shaders/pbr.fragment.fx @@ -612,7 +612,7 @@ void main(void) { float scatteringDiffusionProfile = 255.; #endif - gl_FragData[PREPASS_IRRADIANCE_INDEX] = vec4(clamp(irradiance, vec3(0.), vec3(1.)), scatteringDiffusionProfile / 255.); // Irradiance + SS diffusion profile + gl_FragData[PREPASS_IRRADIANCE_INDEX] = vec4(clamp(irradiance, vec3(0.), vec3(1.)), writeGeometryInfo * scatteringDiffusionProfile / 255.); // Irradiance + SS diffusion profile #else gl_FragData[0] = vec4(finalColor.rgb, finalColor.a); #endif