I'm out of context here so, if you care, a ready made scene should be of most help...
But fundamentally, what is your goal?
I don't have a specific goal except learning scene nodes and hopefully using it with Corona ;)
It's exactly like Houdini, where you can drive shading settings from scene attributes and data. But it requires some degree of integration on the renderer side to get those values.
In my example, the color of each instance is driven by it's index in the instances range ( = ratio ). Black at the start of the range, white at the end.
A bad hack, I assume.
I used the undocumented Data shader that came with V8 (late). But it works. In all situations? I doubt it.
But it works for the scene you were referring to ;)
Heads up!
Rendering scene node cloners obviously has a bug with Corona render.
The cloned object's original (the sphere in the centre) is still being rendered (should not).
Have fun playing with the scene.
Michael
PS
There might be a proper solution to this, but I have not found it yet.
Thank you Cinemike, except for the few quirks of the IR and the lack of viewport shading, it seems to work as expected, nice. What is this shader ? Some sort of debug tool ?