summaryrefslogtreecommitdiff
path: root/progs/glsl/CH11-bumpmap.frag
diff options
context:
space:
mode:
Diffstat (limited to 'progs/glsl/CH11-bumpmap.frag')
-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 063576f5a3..e12c5d374c 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; }