Skip to main content

Material.SetShaderPassEnabled(string passName, boolean enabled)

Enables or disables a Shader pass on a per-Material level.

Parameters:

NameTypeDescription
passNamestringShader pass name (case insensitive).
enabledbooleanFlag 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)