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 ?
Asked
Active
Viewed 1,314 times
3
Gorgious
- 30,723
- 2
- 44
- 101
-
3I 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. – vklidu Feb 29 '20 at 08:50
-
4It'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. – Robin Betts Feb 29 '20 at 09:10