module
CrShader::Language::Std::Sdf
Overview
Signed Distance Fields (require "std/sdf"):
Raymarching and procedural geometry SDF primitives:
sdf_sphere(p, radius): Exact distance to a sphere.sdf_box(p, b): Exact distance to a 3D box.smin(a, b, k): Polynomial smooth minimum for organic union blending.smax(a, b, k): Polynomial smooth maximum for organic carving.