提交 85c291bd 编写于 作者: W WestLangley

Fix Adreno bug-fix bug

上级 ab18028c
......@@ -39,14 +39,8 @@ export default /* glsl */`
#ifdef DOUBLE_SIDED
// Workaround for Adreno GPUs gl_FrontFacing bug. See #15850 and #10331
// http://hacksoflife.blogspot.com/2009/11/per-pixel-tangent-space-normal-mapping.html?showComment=1522254677437#c5087545147696715943
vec3 NfromST = cross( S, T );
if( dot( NfromST, N ) > 0.0 ) {
S *= -1.0;
T *= -1.0;
}
if ( dot( cross( S, T ), N ) < 0.0 ) mapN.xy *= - 1.0;
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册