Water foam using distance fields
I'm having trouble getting my water foam to work. I planned on using distance fields to create foam for my water but I get a very strange result. The lines look blocky which could just be a quality setting I need to change but there is also this large white square that appears if I get too close to my water making the entire surface white.
In the screen shot below I have a plane with the foam material on it and as you can see the white square is appearing. The material is displayed at the bottom. Can someone explain what I am doing wrong.
asked Mar 02 '18 at 01:01 AM in Rendering
I'm not sure how to advise on using distance fields, but have you considered using the Depth Fade node in your material instead? Depth Fade returns 0 where two surfaces intersect and "fades" to 1 as the surfaces get further and further apart. You can use this to drive a Lerp between two values or just as an input to some other logic. It's very useful for shoreline effects or force fields that get more intense as they get closer to the ground, as just two examples. It only works with translucent materials, though.
answered Mar 02 '18 at 08:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here