Recently, I began experimenting with the three.js library and have a question about decals:
I managed to create a sphere with a texture applied to it. Is there a way to overlay another texture on specific areas of the sphere without repeating the original one? For example, if my sphere is "hit," I would like to add a bullethole texture only at that point. My thought was to use a transparent .png file for this purpose.
Is my approach correct? Do I need to create a larger sphere for each "impact" and apply the bullethole texture as a transparent png, ensuring it's only shown once on the new sphere of a specific size?
If anyone could guide me in the right direction, I would greatly appreciate it. I am new to 3D design/coding/three.js.
I came across a video on YouTube showing a similar effect achieved by clicking an object, but I'm unsure of how it was done:
http://www.youtube.com/watch?v=ckLghsutfmA
Thank you for any assistance!