From d82c08b8a894646b5aa53fefa51220a960558edb Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Thu, 28 Dec 2023 20:06:09 -0800 Subject: [PATCH] Increase sample count for accuracy --- libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl b/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl index 70f62956ca..08afea041a 100644 --- a/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl +++ b/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl @@ -46,7 +46,7 @@ vec3 mx_prefilter_environment() // Integrate the LD term for the given environment and alpha. vec3 radiance = vec3(0.0, 0.0, 0.0); float weight = 0.0; - int envRadianceSamples = 256; + int envRadianceSamples = 1024; for (int i = 0; i < envRadianceSamples; i++) { vec2 Xi = mx_spherical_fibonacci(i, envRadianceSamples);