I have multiple models with the same material. I want them to fade in/out at different times. I’ve been using
this.meshInstances[i].setParameter("material_opacity", ... );
There is also the method of setting the material opacity and calling the material.update() function, but that results in all models with that material to change their opacity.
as seen in this tutorial:
https://playcanvas.com/project/436566/overview/fading-objects-in-and-out
It has been working fine up until recently. If you try to launch the tutorial from the editor you can also see that noting happens.
- Does anyone have a solution that involve independently fading out models with the same material?
- If I do create multiple identical materials and simply go with setting the opacity and calling the material.update(); function, will that affect performance in any way?