提交 af9fb1d1 编写于 作者: A alteredq

Added handling of flipSided also to normal map shader.

See #2352
上级 6ae29843
此差异已折叠。
......@@ -275,6 +275,12 @@ THREE.ShaderUtils = {
"mat3 tsb = mat3( normalize( vTangent ), normalize( vBinormal ), normalize( vNormal ) );",
"vec3 finalNormal = tsb * normalTex;",
"#ifdef FLIP_SIDED",
"finalNormal = -finalNormal;",
"#endif",
"vec3 normal = normalize( finalNormal );",
"vec3 viewPosition = normalize( vViewPosition );",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册