提交 b44ab326 编写于 作者: D Don McCurdy

[glTF] Patch uv2 naming for shaders.

上级 532c223d
......@@ -735,6 +735,11 @@ THREE.GLTF2Loader = ( function () {
shaderText = shaderText.replace( regEx, 'uv' );
break;
case 'TEXCOORD_1':
shaderText = shaderText.replace( regEx, 'uv2' );
break;
case 'COLOR_0':
case 'COLOR0':
case 'COLOR':
......
......@@ -745,6 +745,11 @@ THREE.GLTFLoader = ( function () {
shaderText = shaderText.replace( regEx, 'uv' );
break;
case 'TEXCOORD_1':
shaderText = shaderText.replace( regEx, 'uv2' );
break;
case 'COLOR_0':
case 'COLOR0':
case 'COLOR':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册