I’m looking for a sanity check on my implementation of how to show a projected brush cursor on a mesh for a “drawing on mesh” operation. I’ve tried searching forums and playgrounds for something similar but didn’t find anything close enough. I want to be able to draw multiple brush sizes and shapes onto the mesh.
Currently, I’m using a Dynamic Texture, and manually drawing the cursor onto it with Canvas operations, and mixing that texture with the diffuse via a custom node material. I might move it to it’s own material as we’re already using MultiMaterial on the target.
I considered animating a mesh above the target mesh, but was concerned with Z-fighting on that approach. Decals also seemed more suited to a permanent modification of the mesh texture and not ideal for something that follows the cursor.
We’re still on Babylon 4.2 if that rules anything out from the 5.0-alpha builds. Any suggestions?