diff --git a/tests/in/glsl/bevy-pbr.frag b/tests/in/glsl/bevy-pbr.frag index 1c65f9e96f..6b5261e202 100644 --- a/tests/in/glsl/bevy-pbr.frag +++ b/tests/in/glsl/bevy-pbr.frag @@ -115,7 +115,7 @@ float getDistanceAttenuation(float distanceSquare, float inverseRangeSquared) { float factor = distanceSquare * inverseRangeSquared; float smoothFactor = saturate(1.0 - factor * factor); float attenuation = smoothFactor * smoothFactor; - return attenuation * 1.0 / max(distanceSquare, 1e-4); + return attenuation * 1.0 / max(distanceSquare, 1e-3); } // Normal distribution function (specular D) diff --git a/tests/out/wgsl/bevy-pbr-frag.wgsl b/tests/out/wgsl/bevy-pbr-frag.wgsl index f775281beb..bcdc8df30b 100644 --- a/tests/out/wgsl/bevy-pbr-frag.wgsl +++ b/tests/out/wgsl/bevy-pbr-frag.wgsl @@ -135,7 +135,7 @@ fn getDistanceAttenuation(distanceSquare: f32, inverseRangeSquared: f32) -> f32 attenuation = (e64 * e65); let e68: f32 = attenuation; let e73: f32 = distanceSquare1; - return ((e68 * 1.0) / max(e73, 0.00009999999747378752)); + return ((e68 * 1.0) / max(e73, 0.0010000000474974513)); } fn D_GGX(roughness: f32, NoH: f32, h: vec3) -> f32 {