MaterialOpts
Defined in: packages/threeplay/src/plugins/shapes/types.ts:68
Material options for material().
Properties
Section titled “Properties”emissive?
Section titled “emissive?”
optionalemissive?:ColorLike
Defined in: packages/threeplay/src/plugins/shapes/types.ts:73
emissiveIntensity?
Section titled “emissiveIntensity?”
optionalemissiveIntensity?:number
Defined in: packages/threeplay/src/plugins/shapes/types.ts:74
flatShading?
Section titled “flatShading?”
optionalflatShading?:boolean
Defined in: packages/threeplay/src/plugins/shapes/types.ts:77
Faceted look (ignored by "basic" and "toon", which don’t support it).
optionalmap?:string|Texture<unknown,TextureEventMap>
Defined in: packages/threeplay/src/plugins/shapes/types.ts:79
Texture name loaded with loadTexture(), or a THREE.Texture.
metalness?
Section titled “metalness?”
optionalmetalness?:number
Defined in: packages/threeplay/src/plugins/shapes/types.ts:72
repeat?
Section titled “repeat?”
optionalrepeat?:number| [number,number]
Defined in: packages/threeplay/src/plugins/shapes/types.ts:81
How many times the texture repeats (default 1).
roughness?
Section titled “roughness?”
optionalroughness?:number
Defined in: packages/threeplay/src/plugins/shapes/types.ts:71
optionaltype?:"standard"|"basic"|"toon"|"lambert"|"phong"
Defined in: packages/threeplay/src/plugins/shapes/types.ts:70
"standard" (default, PBR), "basic" (unlit), "toon", "lambert", "phong".
wireframe?
Section titled “wireframe?”
optionalwireframe?:boolean
Defined in: packages/threeplay/src/plugins/shapes/types.ts:75