Skip to content

Intermact API Reference / @intermact/render-three / makeBasicMaterial

Function: makeBasicMaterial()

makeBasicMaterial(css, opacity): MeshBasicMaterial

Defined in: material.ts:9

Create a 2D-friendly basic material (design.md §15): unlit, transparent, with depthWrite disabled so 2D objects compose via the painter's algorithm (renderOrder from zIndex) rather than the depth buffer.

Parameters

css

string | undefined

opacity

number

Returns

MeshBasicMaterial

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)