未验证 提交 a4513414 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18107 from WestLangley/dev_shader_transform_tangent

 Default Normal Shader: transform tangents with modelViewMatrix
......@@ -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.
先完成此消息的编辑!
想要评论请 注册