-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.sdl
63 lines (61 loc) · 1.11 KB
/
scene.sdl
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
63
scene {
camera {
position 0 0 -20
up 0 1 0
right 1 0 0
}
focal-distance 10
screen {
width 64
height 48
}
lights {
light {
position 5 0 -20
color 255 200 255
}
}
objects {
sphere {
color 0 255 0
center -5 2.5 -2
radius 10
}
sphere {
color 0 0 255
center 5 -2.5 5
radius 15
}
// walls:
// back
plane {
normal 0 0 1
anchor 0 0 10
color 255 255 255
}
// left
plane {
normal 1 0 0
anchor -30 0 0
color 255 255 255
}
// right
plane {
normal 1 0 0
anchor 30 0 0
color 255 255 255
}
// top
plane {
normal 0 1 0
anchor 0 30 0
color 255 255 255
}
// bottom
plane {
normal 0 1 0
anchor 0 -30 0
color 255 255 255
}
}
}