I can build a material instance, give it to one or more geometry instances. I can change each of the geometries individually (setLocalTranslation (x, y, z)).
At the moment I can get any material-specific or texture-specific information in the “.frag” shader. If I were to give a copy of the material to every geometry, then I could give the respective material of a geometry the position of each geometry, but this is unattractive. I would want to stick with one instance of the material.
Can I and if so how, give geometry-specific information - like the LocalTranslation here - to the “.frag” shader?