Bend a plane with a sphere (smoothing)

Hi, community!

The starting point of this topic is here: How to bend a grid of particles into kinda sphere-looking shape?
There it was made with pure javascript.
So I decided to make it in a more performant way, using shaders: when we know radius and position of a sphere, we can bend the plane with big amount of points.

Example: https://codepen.io/prisoner849/full/zYZzmXB
Picture:

Related resource: Function Smoothing Explained! - YouTube

11 Likes

fantastic as usual !

3 Likes

@felixmariotto thanks :beers:

1 Like

Very nice! Reminds me a lot of celestial bodies gravity visualizations :earth_africa:

1 Like

@DolphinIQ @Yury thanks, guys :slight_smile:

Great job :slight_smile:

1 Like

@ip3ly5 thanks :slight_smile:

Oh, that’s so cool , thank you so much !!!

@mayyar thanks and you’re welcome :slight_smile: