提交 20a80396 编写于 作者: I Ian Kerr

Adds support for polylist normals, uvs and color vertex elements.

上级 7eab901d
......@@ -2288,7 +2288,12 @@ THREE.ColladaLoader = function () {
input = inputs[ k ];
source = sources[ input.source ];
index = p[ i + ( j * maxOffset ) + input.offset ];
if ( primitive.vcount ){
index = p[ i + j ];
} else {
index = p[ i + ( j * maxOffset ) + input.offset ];
}
numParams = source.accessor.params.length;
idx32 = index * numParams;
......@@ -2425,7 +2430,11 @@ THREE.ColladaLoader = function () {
}
i += maxOffset * vcount;
if ( primitive.vcount ){
i += vcount;
} else {
i += maxOffset * vcount;
}
}
......@@ -2457,6 +2466,12 @@ THREE.ColladaLoader = function () {
this.inputs[ i ].source = vertices.input[ 'POSITION' ].source;
for(var key in vertices.input){
if(key != 'POSITION'){
var input = vertices.input[key];
this.inputs.push(input);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册