Material.FindPass(string passName)
Returns the index of the pass passName.
Parameters:
Name | Type | Description |
---|---|---|
passName | string | Name of the Pass. |
Returns:
type | Description |
---|---|
number | the index of the pass passName. -1 if it does not exist. |
Usage
---@type Material
local material;
---@type string
local passName;
local val0 = material.FindPass(passName)