diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-10 12:04:49 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-10 12:04:49 -0600 |
commit | b3a68b24bd601a4fcffb701bbd73864ed92a05e1 (patch) | |
tree | d7831ecb48a0520a2fb88bb669177796480cf10e | |
parent | a45d293fd9a1432404a7e26f97cb20b2a0c43654 (diff) |
replace 1.0/sqrt() with inversesqrt()
-rw-r--r-- | progs/glsl/CH11-bumpmap.frag | 2 |
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; } |