Hello. I am working on a game with spherical planets as levels and have been trying to make a spherical ocean shader. I have been able to find next to no information on the subject and decided to do my best to adapt an existing planar solution for spheres. I chose to follow Ben Cloward’s tutorial series and managed to get normals rendering in 3D world space, but I am struggling with adapting the depth shown in the video linked below to 3-dimensional space instead of just on the Z-axis.
Ben Cloward’s Water Depth Turorial: https://www.youtube.com/watch?v=9N-pQNPChxU&list=PL78XDi0TS4lGXKflD2Z5aY2sLuIln6-sD&index=7