jordienr / whatamesh

tool to create mesh gradients
whatamesh.vercel.app
87 stars 10 forks source link

Smooth hard lines #5

Open tin-soldier opened 1 year ago

tin-soldier commented 1 year ago

Is there a method anyone's found to remove/smooth the hard lines which form in the ripples? In other words just have the blurry mesh gradient moving around?

grahamplace commented 3 months ago

I also wanted to make this change, in Gradient.js, replacing noise *= 1.0 - pow(abs(uvNorm.y), 2.0); with noise = smoothstep(0.0, 1.0, noise); seems to do the trick