提交 30003955 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11127 from stevenvergenz/feature/gltf-uv2

glTF: parse second UV channel if available
......@@ -1719,6 +1719,10 @@ THREE.GLTF2Loader = ( function () {
geometry.addAttribute( 'uv', bufferAttribute );
break;
case 'TEXCOORD_1':
geometry.addAttribute( 'uv2', bufferAttribute );
break;
case 'COLOR_0':
case 'COLOR0':
case 'COLOR':
......
......@@ -1625,6 +1625,10 @@ THREE.GLTFLoader = ( function () {
geometry.addAttribute( 'uv', bufferAttribute );
break;
case 'TEXCOORD_1':
geometry.addAttribute( 'uv2', bufferAttribute );
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.
先完成此消息的编辑!
想要评论请 注册