Skip to main content

Material.SetPass(number pass)

Activate the given pass for rendering.

Parameters:

NameTypeDescription
passnumberShader pass number to setup.

Returns:

typeDescription
booleanIf false is returned, no rendering should be done.

Usage

---@type Material
local material;

---@type number
local pass;


local val0 = material.SetPass(pass)