Skip to content
On this page

Interface: UnlitMaterialProps

WebSG.UnlitMaterialProps

UnlitMaterialProps is an interface that defines the properties for creating an unlit Material instance.

Table of contents

Properties

Properties

alphaCutoff

Optional alphaCutoff: number

The alpha cutoff value for the material. Default is 0.5.

Defined in

websg.d.ts:333


alphaMode

Optional alphaMode: AlphaMode

The alpha mode for the material. Default is 'OPAQUE'.

Defined in

websg.d.ts:337


baseColorFactor

Optional baseColorFactor: ArrayLike<number>

The RGBA base color factor.

Defined in

websg.d.ts:321


baseColorTexture

Optional baseColorTexture: Texture

The base color texture.

Defined in

websg.d.ts:325


doubleSided

Optional doubleSided: boolean

Whether the material is visible from both sides. Default is false.

Defined in

websg.d.ts:329


name

Optional name: string

The name of the material.

Defined in

websg.d.ts:317