Skip to main content
glre
Docs
API
Guide
Primitives
English
English
日本語
GitHub
Sphere
Sphere
Code Example
float
sphereSDF
(
vec3 p
,
float
s
)
{
return
length
(
p
)
-
s
;
}
Previous
Primitives
Next
Box