Search Unity

Paint shader

Discussion in 'Shaders' started by Eiseno, Oct 16, 2019.

  1. Eiseno

    Eiseno

    Joined:
    Nov 1, 2015
    Posts:
    86
    Hello guys i want to make something like at video. When car hit the ball the color paint the road. How can i make that ? Is it possible to make with shader graph ?



    Best Regards
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    You have to find out a way to store the painted areas and then render it with a shader (for example). It can't just be done with a single shader as you need the data stored, so you need to save it somehow, in a RenderTexture or by some other method that is fast enough for your game.

    It is not trivial so I would suggest looking in asset store or googling on topic like "splatoon like paint effect" etc. There are a few threads on this forum too.