Example

2D Raymarching

10

McPepic 2023-03-24 01:10 (Edited)

Uses a signed distance function to check the distance to a 2D shape. Point is moved along ray by distance to closest shape and cycle is repeated until the current point hits the shape.

Tap on the screen after it finishes drawing to move the start point for the ray.


Log in to reply.