Skip to content

Commit db87d87

Browse files
authored
Document InstancedMesh multi-material support. (#975)
1 parent 0f2dd85 commit db87d87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/three/src/objects/InstancedMesh.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface InstancedMeshEventMap extends Object3DEventMap {
1616
/**
1717
* A special version of {@link THREE.Mesh | Mesh} with instanced rendering support
1818
* @remarks
19-
* Use {@link InstancedMesh} if you have to render a large number of objects with the same geometry and material but with different world transformations
19+
* Use {@link InstancedMesh} if you have to render a large number of objects with the same geometry and material(s) but with different world transformations
2020
* @remarks
2121
* The usage of {@link InstancedMesh} will help you to reduce the number of draw calls and thus improve the overall rendering performance in your application.
2222
* @see Example: {@link https://threejs.org/examples/#webgl_instancing_dynamic | WebGL / instancing / dynamic}
@@ -33,8 +33,8 @@ export class InstancedMesh<
3333
> extends Mesh<TGeometry, TMaterial, TEventMap> {
3434
/**
3535
* Create a new instance of {@link InstancedMesh}
36-
* @param geometry An instance of {@link THREE.BufferGeometry | BufferGeometry}.
37-
* @param material A single or an array of {@link THREE.Material | Material}. Default {@link THREE.MeshBasicMaterial | `new THREE.MeshBasicMaterial()`}.
36+
* @param geometry An instance of {@link BufferGeometry}.
37+
* @param material A single or an array of {@link Material}. Default is a new {@link MeshBasicMaterial}.
3838
* @param count The **maximum** number of instances of this Mesh. Expects a `Integer`
3939
*/
4040
constructor(geometry: TGeometry | undefined, material: TMaterial | undefined, count: number);

0 commit comments

Comments
 (0)