Skip to main content

Material.GetShaderPassEnabled(string passName)

Checks whether a given Shader pass is enabled on this Material.

Parameters:

NameTypeDescription
passNamestringShader pass name (case insensitive).

Returns:

typeDescription
booleanTrue if the Shader pass is enabled.

Usage

---@type Material
local material;

---@type string
local passName;


local val0 = material.GetShaderPassEnabled(passName)