Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Dec 26, 2023
1 parent 0763963 commit 1bfd917
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 @@ -25,9 +25,9 @@ vec3 mx_latlong_map_projection_inverse(vec2 uv)
return vec3(x, y, z);
}

// The inverse of mx_latlong_alpha_to_lod.
float mx_latlong_lod_to_alpha(float lod)
{
// Compute alpha from the input mip level.
float lodBias = lod / float($envRadianceMips);
return (lodBias < 0.5) ? mx_square(lodBias) : 2.0 * (lodBias - 0.375);
}
Expand Down

0 comments on commit 1bfd917

Please sign in to comment.