- Home /
How do I make this paint shader effect where I create random holes over something I paint over?
I'm using a line renderer to paint my lines but I'm trying to get this effect https://i.imgur.com/TpvHJUZ.png
Basically the grey line is the first thing I paint and then when I try to draw the second red line over the first grey line, then it will make random holes that reveal some parts of the grey line that I painted over.
How would I go about doing this?
Can't you just use a transparent material with a brush texture?
But how do you detect if you drew over an existing line? I'd only want it to activate when it draws over an existing line not everytime.
Answer by BronsonBrad · Aug 01, 2021 at 10:24 PM
Don't know if this is helpful but, my mind immediately thinks of creating a shader you can use with Polybrush to paint on using an objects vertex colors. Then in the shader, you would lerp between two vertex colors (two different surfaces, such as your red and grey colors) using either a procedural node or a black and white texture, as a mask.
Your answer
Follow this Question
Related Questions
Creating a line between different colors? 0 Answers
Material doesn't have a color property '_Color' 4 Answers
ShaderGraph Material Color change. 0 Answers
Particle effects along line renderer? 0 Answers