toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#shader

6 posts6 participants1 post 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

It's funny how simple and fast a basic raytracer can be.

I remember in my first year of IT school (2007-2008) when we had to implement one on CPU, and we had to wait several minutes for one picture to be rendered.

Of course this one is still very basic, but hey it's in real time baby