Cut off geometry shader using a SDF sphere - Godot 4

Опубликовано: 26 Декабрь 2023
на канале: Pixezy
3,487
143

Additional notes: This is the SDF version of the cut, it is even simpler than the plane because the rotation matrix is not needed. However, I used 3D simplex noise because it doesn't make sense to use 2D noise in this case, since the sphere cuts in all dimensions, not like the plane which cuts in only one direction. And I use simplex noise because the algorithm is in real time (it is not a texture) and it is faster and more optimized than classic Perlin noise. Anyway, Perlin noise is my favorite when I use it on a texture.

INCLUDE FILE
https://pastebin.com/1LRucAUg

SOURCE OF SIMPLEX 3D NOISE ALGORITHM
https://github.com/ashima/webgl-noise...

SUPPORT MY CHANNEL AND DOWNLOAD THIS FILE IN PATREON
  / cut-off-geometry-95310763  

HASHTAGS:
#godot4 #godot #shader #vfx