Skip to content

Commit

Permalink
Reduce sample count
Browse files Browse the repository at this point in the history
This changelist reduces the environment sample count from 1024 to 256, taking advantage of the recently-added filtering.
  • Loading branch information
jstone-lucasfilm committed Dec 26, 2023
1 parent 2ac301c commit 7ece761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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 = 1024;
int envRadianceSamples = 256;
for (int i = 0; i < envRadianceSamples; i++)
{
vec2 Xi = mx_spherical_fibonacci(i, envRadianceSamples);
Expand Down

0 comments on commit 7ece761

Please sign in to comment.