Browse Source

Move the sphere to (1,1,1)

master
gradient 8 years ago
parent
commit
a4621f4660
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/test/shaders/test.frag

+ 1
- 1
examples/test/shaders/test.frag View File

@ -29,7 +29,7 @@ vec3 ray_dir(float fov, vec2 uv) {
SceneResult scene_f(vec3 p) {
SceneResult box = SceneResult(fBox(p, vec3(1)), 1.);
SceneResult sphere = SceneResult(fSphere(p + vec3(1), 1.0), 2.);
SceneResult sphere = SceneResult(fSphere(p - vec3(1), 1.0), 2.);
return min_sr(box, sphere);
}


Loading…
Cancel
Save