ShaderSet
Contents
[
Hide
]ShaderSet class
Shader programs for each kind of materials
Methods
constructor
| Name | Description |
|---|---|
| constructor() | Construct the instance of ShaderSet |
Result:
getLambert
| Name | Description |
|---|---|
| getLambert() | Gets or sets the shader that used to render the lambert material |
Result:
setLambert
| Name | Description |
|---|---|
| setLambert(value) | Gets or sets the shader that used to render the lambert material |
Result:
getPhong
| Name | Description |
|---|---|
| getPhong() | Gets or sets the shader that used to render the phong material |
Result:
setPhong
| Name | Description |
|---|---|
| setPhong(value) | Gets or sets the shader that used to render the phong material |
Result:
getPbr
| Name | Description |
|---|---|
| getPbr() | Gets or sets the shader that used to render the PBR material |
Result:
setPbr
| Name | Description |
|---|---|
| setPbr(value) | Gets or sets the shader that used to render the PBR material |
Result:
getFallback
| Name | Description |
|---|---|
| getFallback() | Gets or sets the fallback shader when required shader is unavailable |
Result:
setFallback
| Name | Description |
|---|---|
| setFallback(value) | Gets or sets the fallback shader when required shader is unavailable |
Result: