diff options
author | romulox_x <romulox_x@yahoo.com> | 2014-10-14 01:21:50 -0700 |
---|---|---|
committer | romulox_x <romulox_x@yahoo.com> | 2014-10-14 01:21:50 -0700 |
commit | b479a2c8f0c9bd09617c1b925979a3708cab0525 (patch) | |
tree | b954c1f28d36a0eb9ff9331b7d1ff474473d1bea | |
parent | 38971951f8c518aee01c3c2c1311d5ee8a5a841f (diff) |
fix view dependent problem in normal mapping
-rw-r--r-- | drivers/gles2/shaders/material.glsl | 2 |
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 |