summaryrefslogtreecommitdiff
path: root/drivers/gles2
diff options
context:
space:
mode:
authorromulox_x <romulox_x@yahoo.com>2014-10-14 01:21:50 -0700
committerromulox_x <romulox_x@yahoo.com>2014-10-14 01:21:50 -0700
commitb479a2c8f0c9bd09617c1b925979a3708cab0525 (patch)
treeb954c1f28d36a0eb9ff9331b7d1ff474473d1bea /drivers/gles2
parent38971951f8c518aee01c3c2c1311d5ee8a5a841f (diff)
fix view dependent problem in normal mapping
Diffstat (limited to 'drivers/gles2')
-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