Nodes > Inputs > Shader > Instance ID
Returns the Instance ID of the currently drawn instance. Useful when the material's "Instance Count" is greater than 1, which causes multiple instances of the mesh to be drawn.
Instance IDs are whole numbers ranging from 0 to n-1, where n is the "Instance Count" of the material.
Outputs
Name | Type | Description |
---|---|---|
Instance ID | float | Index of the currently drawn instance, ranging from 0 to Instance Count -1. |
Was this page helpful?