sdSphere
#Signed_Distance_Field
sdsphereは、球のSigned Distance Field
最も単純なSDFのひとつ
code:glsl
float sdSphere(vec3 p, float r) {
return length(p) - r;
}