1 -- Geometric primitives for raymarching
5 local function make_sphere(centre, radius, texture)
8 return {dist = V.norm(p-centre) - radius,
13 local function make_plane(centre, normal, texture)
15 return {dist = normal*(p-centre),
21 make_sphere = make_sphere,
22 make_plane = make_plane