InstancedMesh2Params
Defined in: core/InstancedMesh2.ts:25
Parameters for configuring an InstancedMesh2 instance.
Properties
allowsEuler?
optionalallowsEuler:boolean
Defined in: core/InstancedMesh2.ts:47
Determines whether InstancedEntity can use the rotation property.
If true quaternion and rotation will be synchronized, affecting performance.
Default
falsecapacity?
optionalcapacity:number
Defined in: core/InstancedMesh2.ts:36
Determines the maximum number of instances that buffers can hold. The buffers will be expanded automatically if necessary.
Default
1000createEntities?
optionalcreateEntities:boolean
Defined in: core/InstancedMesh2.ts:41
Determines whether to create an array of InstancedEntity to easily manipulate instances at the cost of more memory.
Default
falserenderer?
optionalrenderer:WebGLRenderer
Defined in: core/InstancedMesh2.ts:53
WebGL renderer instance. If not provided, buffers will be initialized during the first render, resulting in no instances being rendered initially.
Default
nulluseDistanceForLOD?
optionaluseDistanceForLOD:boolean
Defined in: core/InstancedMesh2.ts:30
If true, LOD uses camera distance; otherwise it uses screen size.
Default
true