Format
typescript
Material.shaderclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
Shader | The shader. |
Code Example
typescript
let material = Resources.Load<Material>(Material, "materialId");
material.shader;