Skip to main content
Version: 5.x

Nodes > Inputs > Shader > Instance Ratio

Instance Ratio

Ratio of the current Instance ID compared to the total Instance Count. Useful when the material's "Instance Count" is greater than 1, which causes multiple instances of the mesh to be drawn.

While the Instance ID starts from 0, Instance Ratio is equivalent to dividing the Instance ID node by the Instance Count minus 1.

Outputs

NameTypeDescription
Instance RatiofloatRatio of Instance ID compared to Instance Count
Was this page helpful?
Yes
No