I am trying to set a unique render attribute on each object in my scene, and I want something like this:
GetComponent<ModelRenderer>().Attributes.Set( "MyColor", myColor);
.. but that isn't doing anything. I also tried making a clone of the OverrideMaterial per object.
I know the material is set up correctly internally at least as this works, but it affects every object:
I know the material is set up correctly internally at least as this works, but it affects every object:
Scene.RenderAttributes.Set( "MyColor", myColor);
Does anyone have an example that works?