提交 2d2d6861 编写于 作者: W WestLangley

Transform tangent with modelViewMatrix

上级 d1375d69
......@@ -17,7 +17,7 @@ transformedNormal = normalMatrix * transformedNormal;
#ifdef USE_TANGENT
vec3 transformedTangent = normalMatrix * objectTangent;
vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;
#ifdef FLIP_SIDED
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册