Skip to content

格式

typescript
Material.shader

所属类: Material

描述

材质使用的着色器。

着色器通常是由一组渲染通道组成,每个通道定义了渲染对象在不同情况下的表现方式。

参数

参数名类型描述

返回值

类型描述
Shader着色器

代码示例

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