Interface: InstancedMobjectOptions
Defined in: src/mobjects/three-d/InstancedMobject.ts:30
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:40
Base material color as a CSS color string. Default: '#ffffff'.
geometry?
optionalgeometry:BufferGeometry
Defined in: src/mobjects/three-d/InstancedMobject.ts:32
Geometry shared by every instance. Cloned on InstancedMobject.copy.
instances?
optionalinstances:InstanceTransform[]
Defined in: src/mobjects/three-d/InstancedMobject.ts:38
Per-instance transforms. Default: empty (no instances).
material?
optionalmaterial:Material
Defined in: src/mobjects/three-d/InstancedMobject.ts:34
Material shared by every instance. Cloned on InstancedMobject.copy.
opacity?
optionalopacity:number
Defined in: src/mobjects/three-d/InstancedMobject.ts:42
Material opacity from 0 to 1. Default: 1.
template?
optionaltemplate:Mobject
Defined in: src/mobjects/three-d/InstancedMobject.ts:36
Template mobject to derive geometry and material from (cloned, not kept).