Skip to content

Threepp.Material

Material base class

Members

Properties

Methods


type

Property \ Access: r/w

Description

Material type (read-only)


id

Property \ Access: r/w

Description

ID (read-only)


name

Property \ Access: r/w

Description

Name


fog

Property \ Access: r/w

Description

Whether the material is affected by fog


opacity

Property \ Access: r/w

Description

Opacity (0.0-1.0)


transparent

Property \ Access: r/w

Description

Whether the material is transparent


depthTest

Property \ Access: r/w

Description

Whether to perform the depth test


depthWrite

Property \ Access: r/w

Description

Whether to write to the depth buffer


colorWrite

Property \ Access: r/w

Description

Whether to write to the color buffer


visible

Property \ Access: r/w

Description

Whether the material is visible


side

Property \ Access: r/w

Description

Which faces are rendered (Side_Front, Side_Back, Side_Double)


blending

Property \ Access: r/w

Description

Blend mode


alphaTest

Property \ Access: r/w

Description

Alpha test threshold


dispose

Method

Description

Releases resources


needsUpdate

Method

Description

Needs update