Skip to content

Api > Material > SetPass()


Material.SetPass(number pass)⚓︎

Activate the given pass for rendering.

Parameters:⚓︎

Name Type Description
pass number Shader pass number to setup.

Returns:⚓︎

type Description
boolean If false is returned, no rendering should be done.

Usage⚓︎

---@type Material
local material;

---@type number
local pass;


local val0 = material.SetPass(pass)