Skip to content

Commit

Permalink
Rename maxInstancedCount to instanceCount
Browse files Browse the repository at this point in the history
  • Loading branch information
erksch committed Oct 25, 2021
1 parent 53553fb commit cf5e769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/meshes/BoundingBoxMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BoundingBoxMesh {
headings: number[],
) {
this.geometry = new THREE.InstancedBufferGeometry();
this.geometry.maxInstancedCount = instances;
this.geometry.instanceCount = instances;
this.geometry.setIndex(indices);
this.geometry.setAttribute('position', new THREE.BufferAttribute(new Float32Array(vertices), 3));
this.geometry.setAttribute('offset', new THREE.InstancedBufferAttribute(new Float32Array(offsets), 3));
Expand All @@ -36,4 +36,4 @@ class BoundingBoxMesh {
}
};

export default BoundingBoxMesh;
export default BoundingBoxMesh;
4 changes: 2 additions & 2 deletions src/meshes/PointMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PointMesh {
predictedTypes: number[],
) {
this.geometry = new THREE.InstancedBufferGeometry();
this.geometry.maxInstancedCount = instances;
this.geometry.instanceCount = instances;
this.geometry.setIndex(indices);
this.geometry.setAttribute('position', new THREE.BufferAttribute(new Float32Array(vertices), 3));
this.geometry.setAttribute('offset', new THREE.InstancedBufferAttribute(new Float32Array(offsets), 3));
Expand All @@ -50,4 +50,4 @@ class PointMesh {
}
};

export default PointMesh;
export default PointMesh;

0 comments on commit cf5e769

Please sign in to comment.