浏览代码

Fix colorsTexture size (#29061)

Andrea Gargaro 1 年之前
父节点
当前提交
239b639fbb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/objects/BatchedMesh.js

+ 1 - 1
src/objects/BatchedMesh.js

@@ -206,7 +206,7 @@ class BatchedMesh extends Mesh {
 
 	_initColorsTexture() {
 
-		let size = Math.sqrt( this._maxIndexCount );
+		let size = Math.sqrt( this._maxInstanceCount );
 		size = Math.ceil( size );
 
 		// 4 floats per RGBA pixel initialized to white

粤ICP备19079148号