I saw this shader (https://www.youtube.com/watch?v=L2Du5F7PfQM - an animated procedural water toon shader) . It says (in it's blender market page - https://www.blendermarket.com/products/pure-toon-water) that it makes foam where another object is deforming the object with the shader.
So how does the shader detect that ?

  • 3
    $\begingroup$ I would say it's based on Dynamic Paint. Water as canvas ... stones,boat etc as brush. Generated map (texture, weight) is used as factor for mixing material or for displacement. $\endgroup$ – vklidu Feb 29 '20 at 8:50
  • 4
    $\begingroup$ It's a lovely shader.. Gleaning clues from the Discord server, it does seem to be using Dynamic Paint. Simple example here. Other ways of detecting nearby objects might include: masks in the Object space of other objects, Vertex Weight Proximity modifier, with a wonderful trick to get Vertex Weights into a shader. $\endgroup$ – Robin Betts Feb 29 '20 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.