Cleaning code

This commit is contained in:
Loic Guegan 2020-07-09 13:02:31 +02:00
parent aac94e911b
commit 12829892b2
9 changed files with 166 additions and 169 deletions

View file

@ -0,0 +1,7 @@
/**
* Compute the Signed Distance Function (SDF)
* of a sphere.
*/
float SphereSDF(vec3 ray_position, vec3 sphere_position, float radius){
return(length(ray_position - sphere_position)-radius);
}

View file

@ -1,4 +0,0 @@
float Sphere(vec3 ray_position, vec3 sphere_position){
}