techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#shader

9 posts8 participants0 posts today

My SDF-2D 3D-viewer is finally functional, so to celebrate I'm morphing my pacman/pie into a circle back and forth.

The shadertoy version is visible here: shadertoy.com/view/333XDH

(For the transform, since it's not present in this version of the code, it's basically a mix according to time between the pie and the sdf+gradient of a circle)

I think I'm done with it. I fixed the clipping and the colors.

I'm still not satisfied with the raymarch glitching a bit, especially on the summit edges. If someone has ideas to improve it, I shared it on shadertoy: shadertoy.com/view/333XDH

I believe that's because we're matching the exit edge of the shape when it's close, but I'm not exactly sure how to fix that. In any case, patch welcome :)

The box cut is not perfect but we're getting there!

Edit: also, fun stuff, I realized I could return transparent pixels, so the web page background takes over and it looks like the shape is floating on it. It's stupid but I love it :3