ModelOpts
Defined in: packages/threeplay/src/plugins/assets/types.ts:14
Options of model().
Properties
Section titled “Properties”
optionalanim?:string
Defined in: packages/threeplay/src/plugins/assets/types.ts:22
Animation to start right away (looping).
faceForward?
Section titled “faceForward?”
optionalfaceForward?:boolean
Defined in: packages/threeplay/src/plugins/assets/types.ts:28
glTF assets face +Z while the engine’s forward is −Z. With true (the
default) the model root is turned 180° around Y so the model faces the
object’s forward(). Use false for models already authored facing −Z.
groundAlign?
Section titled “groundAlign?”
optionalgroundAlign?:boolean
Defined in: packages/threeplay/src/plugins/assets/types.ts:20
Move the model so its bounding box bottom sits at y=0 (default false).
scale?
Section titled “scale?”
optionalscale?:number
Defined in: packages/threeplay/src/plugins/assets/types.ts:16
Uniform scale applied to the model’s root (default 1).
shadows?
Section titled “shadows?”
optionalshadows?:boolean
Defined in: packages/threeplay/src/plugins/assets/types.ts:18
Cast and receive shadows on every mesh (default true).
uniqueMaterials?
Section titled “uniqueMaterials?”
optionaluniqueMaterials?:boolean
Defined in: packages/threeplay/src/plugins/assets/types.ts:35
Clone the materials for this instance up front (default false: instances share
the template’s materials, which is cheaper). Not needed to tint or fade one instance:
color() and opacity() on a model clone its materials automatically. The clones are
disposed when the object is destroyed.