Skip to content

Commit

Permalink
Modify MAX_REFLECTION_LOD
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubidumdu committed May 28, 2024
1 parent cdbed47 commit d612e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/pbr/shaders/pbr.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void main(void){
vec3 irradiance = irradianceSH(N);
vec3 diffuse = irradiance * albedo;

const float MAX_REFLECTION_LOD = 4.0;
const float MAX_REFLECTION_LOD = 10.0;
vec3 prefilteredColor = textureLod(environmentMap, R, roughness * MAX_REFLECTION_LOD).rgb;
vec2 brdf = texture(brdfLUT, vec2(max(dot(N, V), 0.0), roughness)).rg;
vec3 specular = prefilteredColor * (F * brdf.x + brdf.y);
Expand Down

0 comments on commit d612e1f

Please sign in to comment.