WGSL 3D SDF Primitives Revision: 06.08.2023, https://compute.toys/view/407 Sphere - exact fn sdSphere(p: vec3f, r: f32) -> f32 { return length(p) - r; }