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

Merge pull request #10504 from stevenvergenz/gltf-vert-colors

Load vertex color buffers from glTF models
...@@ -1359,6 +1359,12 @@ THREE.GLTFLoader = ( function () { ...@@ -1359,6 +1359,12 @@ THREE.GLTFLoader = ( function () {
geometry.addAttribute( 'uv', bufferAttribute ); geometry.addAttribute( 'uv', bufferAttribute );
break; break;
case 'COLOR_0':
case 'COLOR0':
case 'COLOR':
geometry.addAttribute( 'color', bufferAttribute );
break;
case 'WEIGHT': case 'WEIGHT':
geometry.addAttribute( 'skinWeight', bufferAttribute ); geometry.addAttribute( 'skinWeight', bufferAttribute );
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册