summaryrefslogtreecommitdiff
path: root/progs/glsl/CH11-bumpmap.frag.txt
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2007-07-17 11:25:37 +0800
committerZou Nan hai <nanhai.zou@intel.com>2007-07-17 11:25:37 +0800
commit24e7acd5e4f1e7e71909f94fd1f075abd268d086 (patch)
treea25e8816afebf46757bad80923aab6e56d6ed4e0 /progs/glsl/CH11-bumpmap.frag.txt
parent719cf0b7958d0dedf8727c97eaddb6a1f31977e1 (diff)
bumpmap sample is correct now
Diffstat (limited to 'progs/glsl/CH11-bumpmap.frag.txt')
-rw-r--r--progs/glsl/CH11-bumpmap.frag.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/glsl/CH11-bumpmap.frag.txt b/progs/glsl/CH11-bumpmap.frag.txt
index 1467f767ec..063576f5a3 100644
--- a/progs/glsl/CH11-bumpmap.frag.txt
+++ b/progs/glsl/CH11-bumpmap.frag.txt
@@ -33,7 +33,7 @@ void main()
litColor = SurfaceColor * max(dot(normDelta, LightDir), 0.0);
vec3 reflectDir = reflect(LightDir, normDelta);
- float spec = max(dot(normalize(EyeDir), reflectDir), 0.0);
+ float spec = max(dot(EyeDir, reflectDir), 0.0);
spec *= SpecularFactor;
litColor = min(litColor + spec, vec3(1.0));