Interface: InstancedMobjectOptions
Defined in: src/mobjects/three-d/InstancedMobject.ts:31
Options for creating an InstancedMobject.
Provide a template as either an explicit geometry + material, or a
template mobject to derive both from. If none is given, a unit box with a
standard material is used.
Properties
color?
optionalcolor:string
Defined in: src/mobjects/three-d/InstancedMobject.ts:41
Base material color as a CSS color string. Default: '#ffffff'.
geometry?
optionalgeometry:BufferGeometry
Defined in: src/mobjects/three-d/InstancedMobject.ts:33
Geometry shared by every instance. Cloned on InstancedMobject.copy.
instances?
optionalinstances:InstanceTransform[]
Defined in: src/mobjects/three-d/InstancedMobject.ts:39
Per-instance transforms. Default: empty (no instances).
material?
optionalmaterial:Material
Defined in: src/mobjects/three-d/InstancedMobject.ts:35
Material shared by every instance. Cloned on InstancedMobject.copy.
opacity?
optionalopacity:number
Defined in: src/mobjects/three-d/InstancedMobject.ts:43
Material opacity from 0 to 1. Default: 1.
template?
optionaltemplate:Mobject
Defined in: src/mobjects/three-d/InstancedMobject.ts:37
Template mobject to derive geometry and material from (cloned, not kept).