diff --git a/.todo b/.todo index e2ea1f1..40a6082 100644 --- a/.todo +++ b/.todo @@ -1,3 +1,5 @@ FART To-Do List =============== -- Test subtractions of subtractions +- Fix subtractions of subtractions (inverting normals problem) +- Shape definitions / reusability +- Add distribution infrastructure diff --git a/scenes/subtract-subtract.fart b/scenes/subtract-subtract.fart new file mode 100644 index 0000000..9431b42 --- /dev/null +++ b/scenes/subtract-subtract.fart @@ -0,0 +1,44 @@ + +scene +{ + options + { + multisample 2 + } + + camera + { + position <1, -2, 1> + look_at <0, 0, 0> + } + + light + { + position <-1, -3, 4> + } + + subtract + { + box + { + size <1, 1, 1> + material { color <0.2, 0.2, 1> } + } + + subtract + { + sphere + { + radius 0.4 + material { color <1, 0, 0> } + translate <0, -0.5, 0> + } + box + { + size <1, 1, 0.2> + material { color <0, 1, 0> } + translate <0, -0.5, 0> + } + } + } +}