summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-10-14 07:41:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-10-14 07:41:56 -0300
commit94e35ef316caa0f713eef1c3823c8fa035508090 (patch)
treeb954c1f28d36a0eb9ff9331b7d1ff474473d1bea /drivers
parent38971951f8c518aee01c3c2c1311d5ee8a5a841f (diff)
parentb479a2c8f0c9bd09617c1b925979a3708cab0525 (diff)
Merge pull request #792 from romulox-x/normalmap-view-bug
fix view dependent problem in normal mapping
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/shaders/material.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/material.glsl b/drivers/gles2/shaders/material.glsl
index bf82822378..870004fd10 100644
--- a/drivers/gles2/shaders/material.glsl
+++ b/drivers/gles2/shaders/material.glsl
@@ -306,7 +306,7 @@ void main() {
#endif
#if defined(ENABLE_TANGENT_INTERP)
- tangent_interp=normalize(tangent_in);
+ tangent_interp=normalize((modelview * vec4(tangent_in,0.0)).xyz);
binormal_interp = normalize( cross(normal_interp,tangent_interp) * binormalf );
#endif