For performance reasons I manually bind CustomMaterial and this works fine until I have multiple instances.
I use the method:
_prebind i set my-shader uniforms variables on the Effect and this works as expected with one instance. If I have more then one instance it seems randomly what instance the program is running on.
Anyone has knowledge about this ?