Object Info node can be useful to give some variation to a single material assigned to multiple instances. This patch adds support for Viewport and BI.
Example:
Differential D2425
Object Info node support for GLSL mode and the internal render Authored by Alexander Romanov (a.romanov) on Dec 21 2016, 6:46 PM.
Details
Object Info node can be useful to give some variation to a single material assigned to multiple instances. This patch adds support for Viewport and BI. Example:
Diff Detail Event TimelineComment Actions Looks generally fine to me, always nice to have more complete GLSL support.
Comment Actions
Comment Actions I think it should be unsigned int as you did. It's what I would expect anyways, we don't want different colors assigned to materials because of float precision problems. Comment Actions
First, I don't know how to return it as unsigned to Python. Comment Actions We don't have an unsigned int type in RNA, but exposing it as an int should be fine. In practice casting unsigned int -> int -> unsigned int is a no-op. Comment Actions Great, looks good to me now. I confirmed the random values in Cycles stayed the same. | ||||||||||||||||||||||||