In this video I am going to show you how to build a shader that will create a sphere-like, black hole effect.
To do this I will remap the cartesian UV coordinates to polar coordinates and explain how this works. In the second half, we will build a visual effect using this shader.
Timestamps:
00:00 Intro
01:20 Creating a radial gradient
03:10 Creating an angle gradient using atan()
06:40 Combining the two to create polar coordinates
11:20 Adding more features to the shader
18:11 Building the effect.
21:00 Outro: Like, subscribe, share and all the shaenanigans!
A link to the shader:
https://gist.github.com/RPicster/f7da...
And a link to my game on Steam:
https://store.steampowered.com/app/18...
ØDYSSEE - Rêverie https://chll.to/876404d6
Philanthrope, G Mills - Sand Castles https://chll.to/58bc4b7e
Gustav Gustav - Feels https://chll.to/b5a7ddd3