examples: colorful: use & annotate optional fields

This commit is contained in:
Bruno BELANYI 2020-03-19 13:11:06 +01:00
parent 4235d3d62f
commit 00de0bf118

View file

@ -1,4 +1,6 @@
aliasing_limit: 0 #10 # Optional field
aliasing_limit: 10
# Optional field
reflection_limit: 5 reflection_limit: 5
camera: camera:
@ -10,6 +12,7 @@ camera:
x: 1920 x: 1920
y: 1080 y: 1080
# Optional field, each key itself being optional
lights: lights:
ambients: ambients:
- color: {r: 0.05, g: 0.05, b: 0.05} - color: {r: 0.05, g: 0.05, b: 0.05}
@ -32,7 +35,6 @@ lights:
objects: objects:
- shape: - shape:
type: sphere type: sphere
inverted: false
center: [4.5, 0.0, 0.0] center: [4.5, 0.0, 0.0]
radius: 0.4 radius: 0.4
material: material:
@ -45,7 +47,6 @@ objects:
r: 1.0 r: 1.0
g: 1.0 g: 1.0
b: 1.0 b: 1.0
reflectivity: 0.0
texture: texture:
type: uniform type: uniform
color: color:
@ -55,7 +56,8 @@ objects:
- shape: - shape:
type: sphere type: sphere
inverted: false # Optional field
# inverted: false
center: [10.0, 0.0, 0.0] center: [10.0, 0.0, 0.0]
radius: 5.0 radius: 5.0
material: material:
@ -68,7 +70,8 @@ objects:
r: 1.0 r: 1.0
g: 1.0 g: 1.0
b: 1.0 b: 1.0
reflectivity: 0.0 # Optional field
# reflectivity: 0.0
texture: texture:
type: uniform type: uniform
color: color: