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

Merge pull request #10300 from Coburn37/dev

WebGLIndexedBufferRenderer now supports Uint8Array
......@@ -21,11 +21,15 @@ function WebGLIndexedBufferRenderer( gl, extensions, infoRender ) {
type = gl.UNSIGNED_INT;
size = 4;
} else {
} else if ( index.array instanceof Uint16Array ) {
type = gl.UNSIGNED_SHORT;
size = 2;
} else {
type = gl.UNSIGNED_BYTE;
size = 1;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册