Browse Source

TSL: Fix `instancedArray()` `bufferCount` property (#32977)

sunag 2 weeks ago
parent
commit
55358d6073
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/nodes/accessors/Arrays.js

+ 1 - 1
src/nodes/accessors/Arrays.js

@@ -61,7 +61,7 @@ export const instancedArray = ( count, type = 'float' ) => {
 	}
 
 	const buffer = new StorageInstancedBufferAttribute( count, itemSize, typedArray );
-	const node = storage( buffer, type, count );
+	const node = storage( buffer, type, buffer.count );
 
 	return node;
 

粤ICP备19079148号