提交 1fa3bdef 编写于 作者: M Mr.doob

PlaneGeometry: Uint32Array support.

上级 88972682
...@@ -56,7 +56,7 @@ THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments ) ...@@ -56,7 +56,7 @@ THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments )
offset = 0; offset = 0;
var indices = new Uint16Array( gridX * gridY * 6 ); var indices = new ( vertices.length > 65535 ? Uint32Array : Uint16Array )( gridX * gridY * 6 );
for ( var iy = 0; iy < gridY; iy ++ ) { for ( var iy = 0; iy < gridY; iy ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册