summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-03-08 20:46:11 +0100
committerSakarias Johansson <sakariasjohansson@hotmail.com>2023-03-08 20:54:28 +0100
commit5e87f21e480dbe04fcf6cf95c52e5b98fa3b923c (patch)
treec94239a795660bc5c376c2cd61334ab7ef9c2e5a
parentc742933fbffbb5366a5f07c2b28c1a163a61b93e (diff)
downloadracer-tracer-5e87f21e480dbe04fcf6cf95c52e5b98fa3b923c.tar.gz
racer-tracer-5e87f21e480dbe04fcf6cf95c52e5b98fa3b923c.tar.xz
racer-tracer-5e87f21e480dbe04fcf6cf95c52e5b98fa3b923c.zip
📦 Move scenes into a separate folder
-rw-r--r--racer-tracer/config.yml2
-rw-r--r--resources/scenes/three_balls.yml (renamed from racer-tracer/scene.yml)0
-rw-r--r--resources/scenes/two_balls.yml25
3 files changed, 26 insertions, 1 deletions
diff --git a/racer-tracer/config.yml b/racer-tracer/config.yml
index 26aea31..0da36dc 100644
--- a/racer-tracer/config.yml
+++ b/racer-tracer/config.yml
@@ -16,6 +16,6 @@ screen:
width: 1280
height: 720
-scene: ./scene.yml
+scene: ../resources/scenes/three_balls.yml
image_output_dir: "../"
diff --git a/racer-tracer/scene.yml b/resources/scenes/three_balls.yml
index f9e7571..f9e7571 100644
--- a/racer-tracer/scene.yml
+++ b/resources/scenes/three_balls.yml
diff --git a/resources/scenes/two_balls.yml b/resources/scenes/two_balls.yml
new file mode 100644
index 0000000..338b8f9
--- /dev/null
+++ b/resources/scenes/two_balls.yml
@@ -0,0 +1,25 @@
+---
+materials:
+ left:
+ Lambertian:
+ color:
+ data: [ 0.0, 0.0, 1.0 ]
+
+ right:
+ Lambertian:
+ color:
+ data: [ 1.0, 0.0, 0.0 ]
+
+geometry:
+ - Sphere:
+ pos:
+ data: [ -0.707, 0.0, -1.0 ]
+ radius: 0.707
+ material: left
+
+ - Sphere:
+ pos:
+ data: [ 0.707, 0.0, -1.0 ]
+ radius: 0.707
+ material: right
+