summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-10 12:04:49 -0600
committerBrian Paul <[email protected]>2008-10-10 12:04:49 -0600
commitb3a68b24bd601a4fcffb701bbd73864ed92a05e1 (patch)
treed7831ecb48a0520a2fb88bb669177796480cf10e /progs
parenta45d293fd9a1432404a7e26f97cb20b2a0c43654 (diff)
replace 1.0/sqrt() with inversesqrt()
Diffstat (limited to 'progs')
-rw-r--r--progs/glsl/CH11-bumpmap.frag2
1 files changed, 1 insertions, 1 deletions
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; }