-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.yaml
62 lines (62 loc) · 2.1 KB
/
data.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
settings:
ssample: 4 # Supersampling factor
refl_num: 5 # Maximum number of reflections and refractions
debug: 0 # Debug on = 1, 2
ambient_light: 1 # Ambient light (from above) on or off
ambient_bright: 10.0 # Ambient light brightness
shadows: 0 # 0 disabled, 1 enabled
view:
m: 10 # Number of pixels horizontally
k: 10 # Number of pixels vertically
fov_horizontal: 90 # Field of view horizontally
fov_vertical: 90 # Field of view vertically
eye: [0, 0, 0] # Eye location in space
display: [1, 0, 0] # Centre point of display
dist: 50 # Rendering distance (-1 for infinite)
objects:
bbox: # Bounding box for all objects
bbox: # Bounding box for all non planes
spheres:
sp1:
c: [20, 0, 5] # Centre
r: 9 # Radius
col: [0, 1, 0] # Colour in RGB
refl: 0.5 # Reflectiveness
refr: 0.2 # Refractiveness
sp2:
c: [10, 0, 0]
r: 2
col: [0, 0, 1]
refl: 0.5
refr: 1.3
sp3:
c: [10, 5, 0]
r: 2
col: [0.5, 0.2, 0.2]
refl: 0.2
refr: 1.5
# triangles:
# t1:
# p1:
# p2:
# p3:
# col:
# refl:
# refr:
# planes:
# floor:
# p: [0, 0, 5] # A point on the plane
# norm_vect: [0, 0, 1] # The normal vector to the plane
# col: [1, 1, 1] # Colour of the plane
# refl: 1
# refr: 0
lights:
point_lights:
l1:
pos: [5, 0, -5]
bright: 70
l2:
pos: [15, -20, -5]
bright: 0
...