|
@@ -7,6 +7,7 @@ const _instanceWorldMatrix = /*@__PURE__*/ new Matrix4();
|
|
|
|
|
|
const _instanceIntersects = [];
|
|
const _instanceIntersects = [];
|
|
|
|
|
|
|
|
+const _identity = /*@__PURE__*/ new Matrix4();
|
|
const _mesh = /*@__PURE__*/ new Mesh();
|
|
const _mesh = /*@__PURE__*/ new Mesh();
|
|
|
|
|
|
class InstancedMesh extends Mesh {
|
|
class InstancedMesh extends Mesh {
|
|
@@ -24,6 +25,12 @@ class InstancedMesh extends Mesh {
|
|
|
|
|
|
this.frustumCulled = false;
|
|
this.frustumCulled = false;
|
|
|
|
|
|
|
|
+ for ( let i = 0; i < count; i ++ ) {
|
|
|
|
+
|
|
|
|
+ this.setMatrixAt( i, _identity );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
copy( source, recursive ) {
|
|
copy( source, recursive ) {
|