#Waterfall shader - foam problem

1 messages · Page 1 of 1 (latest)

heavy meteor
#

Hi there, im trying to make a waterfall shader and im 90% completed, now i'm trying to add an erosion slider and if i decrease that slider only the foam should be visible than, but thats not what is happening... When i change the slider nothing happens. I marked the part of the erosion logic in the shadergraph.

heavy meteor
#

honestly i think its because of the alpha clip treshhold but idk how to avoid that part

foggy vector
#

why are you doing one minus?

quick pike
#

I don't know what are the nodes before the erosion par, but I see some "add" before the one minus, meaning that you can potentially have values bellow zero.
To be sure, add a "Saturate" node just before the alpha clip threshold output.