When multiple material values are bound, the values are cycled through, based on the period of the material component with the most values. |
For example, the following table shows the values used when cycling through (or indexing into) a material with 2 ambient colors, 3 diffuse colors, and 1 of all other components in the current material.
|
Material Ambient color Diffuse color Other |
0 0 0 0 |
1 1 1 0 |
2 1 2 0 |
3 (same as 0) 0 0 0 |