summaryrefslogtreecommitdiff
path: root/racer-tracer/scene.yml
diff options
context:
space:
mode:
authorSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-18 21:01:24 +0100
committerSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-18 21:01:24 +0100
commit2abf48d9ce2968f7e999a9e0faf6d0ebfa752c7c (patch)
tree3b58470a7f382634187ba155a1ed398595247a35 /racer-tracer/scene.yml
parent38e9bf130fc1075d576626f0c2ade582ccc3c57f (diff)
downloadracer-tracer-2abf48d9ce2968f7e999a9e0faf6d0ebfa752c7c.tar.gz
racer-tracer-2abf48d9ce2968f7e999a9e0faf6d0ebfa752c7c.tar.xz
racer-tracer-2abf48d9ce2968f7e999a9e0faf6d0ebfa752c7c.zip
🏙️ Add support for reading scene from file
Diffstat (limited to 'racer-tracer/scene.yml')
-rw-r--r--racer-tracer/scene.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/racer-tracer/scene.yml b/racer-tracer/scene.yml
new file mode 100644
index 0000000..f9e7571
--- /dev/null
+++ b/racer-tracer/scene.yml
@@ -0,0 +1,53 @@
+---
+materials:
+ grass:
+ Lambertian:
+ color:
+ data: [ 0.8, 0.8, 0.0 ]
+
+ center:
+ Lambertian:
+ color:
+ data: [ 0.1, 0.2, 0.5 ]
+
+ left:
+ Dialectric:
+ refraction_index: 1.5
+
+ right:
+ Metal:
+ color:
+ data: [ 0.8, 0.6, 0.2]
+ fuzz: 0.0
+
+geometry:
+ - Sphere:
+ pos:
+ data: [ 0.0, -100.5, -1.0 ]
+ radius: 100.0
+ material: grass
+
+ - Sphere:
+ pos:
+ data: [ 0.0, 0.0, -1.0 ]
+ radius: 0.5
+ material: center
+
+ - Sphere:
+ pos:
+ data: [ -1.0, 0.0, -1.0 ]
+ radius: 0.5
+ material: left
+
+ - Sphere:
+ pos:
+ data: [ -1.0, 0.0, -1.0 ]
+ radius: -0.4
+ material: left
+
+ - Sphere:
+ pos:
+ data: [ 1.0, 0.0, -1.0 ]
+ radius: -0.5
+ material: right
+