Cleaning code
This commit is contained in:
parent
aac94e911b
commit
12829892b2
9 changed files with 166 additions and 169 deletions
7
resources/shaders/objects/sphere.frag
Normal file
7
resources/shaders/objects/sphere.frag
Normal 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);
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
float Sphere(vec3 ray_position, vec3 sphere_position){
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue