Skip to content

Format

typescript
Material.shader

class: Material

Description

The shader used by the material.

A shader is typically composed of a set of rendering passes, each defining how the rendered object should appear under different circumstances.

Parameters

param_nametypedescription

Return

typedescription
ShaderThe shader.

Code Example

typescript
let material = Resources.Load<Material>(Material, "materialId");
material.shader;