Material.SetShaderPassEnabled(string passName, boolean enabled)
Enables or disables a Shader pass on a per-Material level.
Parameters:
Name | Type | Description |
---|---|---|
passName | string | Shader pass name (case insensitive). |
enabled | boolean | Flag indicating whether this Shader pass should be enabled. |
Usage
---@type Material
local material;
---@type string
local passName;
---@type boolean
local enabled;
material.SetShaderPassEnabled(passName, enabled)