Skip to content

BasicMaterial

new BasicMaterial({ color?, map?, layer?, opacity?, transparent?, depthTest?, depthWrite?, shading?, side? })

THREE equivalent: THREE.MeshBasicMaterial

Solid color or textured material with no lighting. Defaults to Shading.Flat.

Differs from THREE.js

Accepts hex number, CSS string, or Color instance for color.

Name Type Description
color Color Surface color. Default 0xffffff.
map Texture|undefined Optional texture map. When set, overrides color per-pixel.