Skip to content

MaterialOpts

Defined in: packages/threeplay/src/plugins/shapes/types.ts:68

Material options for material().

optional emissive?: ColorLike

Defined in: packages/threeplay/src/plugins/shapes/types.ts:73


optional emissiveIntensity?: number

Defined in: packages/threeplay/src/plugins/shapes/types.ts:74


optional flatShading?: boolean

Defined in: packages/threeplay/src/plugins/shapes/types.ts:77

Faceted look (ignored by "basic" and "toon", which don’t support it).


optional map?: string | Texture<unknown, TextureEventMap>

Defined in: packages/threeplay/src/plugins/shapes/types.ts:79

Texture name loaded with loadTexture(), or a THREE.Texture.


optional metalness?: number

Defined in: packages/threeplay/src/plugins/shapes/types.ts:72


optional repeat?: number | [number, number]

Defined in: packages/threeplay/src/plugins/shapes/types.ts:81

How many times the texture repeats (default 1).


optional roughness?: number

Defined in: packages/threeplay/src/plugins/shapes/types.ts:71


optional type?: "standard" | "basic" | "toon" | "lambert" | "phong"

Defined in: packages/threeplay/src/plugins/shapes/types.ts:70

"standard" (default, PBR), "basic" (unlit), "toon", "lambert", "phong".


optional wireframe?: boolean

Defined in: packages/threeplay/src/plugins/shapes/types.ts:75