For a tower defence game I actually devellop I need the abillity to add an additionally plane with a texture image that can modified every second.
Here the steps I need, and whats already implemented.
- Spawn a enemy every x seconds - OK
- Add a plane attached to the enemy - Actually I spawn a named Plane defined in Blender and set the enemy as parent. But all Planes have the same texture. How can I generate a new texture for every plane?
- Set plane as billboard - OK (Found an example that should work)
- Paint on the plane - Need to paint on the image texture. Is there a setPixel/setTexel to set the color at a given Pixel/Texel of the image texture?