** I am using the “PhysicsStressTest.lua” script to test how things work **
Let’s say I have multiple instances of a Box.mdl model and I have set them all to use the stoneSmall.xml material…
“Multiple as in anywhere from a couple hundred on up through as much as 5,000 individual models ( Boxes in this case )”
I figured out that I can use:
to change the XML parameters of a object’s material. But this applies to ALL instances of that particular material accross ALL objects in the scene.
Now let’s say that I want to change their colors to be a different color on every box… How to do that?
Also… if i end up having to use a different material XML file for every color then what would the performance hit be to having say 5,000 materials versus only 1 shared material ?