From: Brian Paul Date: Fri, 10 Oct 2008 18:04:49 +0000 (-0600) Subject: replace 1.0/sqrt() with inversesqrt() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3a68b24bd601a4fcffb701bbd73864ed92a05e1;p=mesa.git replace 1.0/sqrt() with inversesqrt() --- diff --git a/progs/glsl/CH11-bumpmap.frag b/progs/glsl/CH11-bumpmap.frag index 063576f5a3c..e12c5d374cd 100644 --- a/progs/glsl/CH11-bumpmap.frag +++ b/progs/glsl/CH11-bumpmap.frag @@ -24,7 +24,7 @@ void main() float d, f; d = p.x * p.x + p.y * p.y; - f = 1.0 / sqrt(d + 1.0); + f = inversesqrt(d + 1.0); if (d >= BumpSize) { p = vec2(0.0); f = 1.0; }