From 1bfd917424a39e704e767758e2ec8011b62ca033 Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Tue, 26 Dec 2023 15:18:47 -0800 Subject: [PATCH] Update documentation --- 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 06dff50118..62a8c953fe 100644 --- a/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl +++ b/libraries/pbrlib/genglsl/lib/mx_prefilter_environment.glsl @@ -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); }