Skip to content

API Type MaterialValue

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Type Alias: MaterialValue

type MaterialValue = 
  | number
  | Vector2
  | Vector3
  | Color
  | readonly number[]
  | string;

Defined in: src/engine/render/Material.ts:24

A material value: a number, vector, colour, 2–4 numbers, or a texture's asset path.

Clone this wiki locally