Hello all,
So, I’m trying to make a game mechanic where a player can draw/paint on a series of meshes using a leap controller. I have the ray tracing and hit detection for the finger controller working, but now I’m trying to create a material that can Lerp/Blend/etc between two colors using an “on hit”-like effect.
I’ve been scrounging through the answerhub for quite a few hours now, and I’ve tried cannibalizing other solutions (like the snow fall material examples); however, most of the solutions utilize some form of predetermined masking or vertex normal direction to lerp between two materials or colors.
How would I go about: “If finger-laser hits the material, change the color at the impact point (vertex, pixel, whatever works) from red to blue”? Is a system like this possible with deferred rendering, or do I need to get clever with decal spawning or mesh deletion/creation?
Thanks for your time :),