-
Notifications
You must be signed in to change notification settings - Fork 60
/
shadowtest.sdf
36 lines (31 loc) · 1.18 KB
/
shadowtest.sdf
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
# materials
define material red 1 0 0 1 0 0 0.5 0 0 4
define material blue 0 0 1 0 0 1 0 0 1 1
define material white 1 1 1 1 1 1 1 1 1 1
define material yellow 1 1 0 1 1 0 1 1 0 1 0.6 0.0005
define material green 0 1 0 0 1 0 0 1 0 1
# geometry
define shape box floor -400 -400 0 470 -410 -8000 blue
define shape box left -400 -400 0 -410 400 -8000 white
define shape box right 400 -400 -500 460 110 -8000 red
define shape sphere sphere 0 0 -200 30 yellow
define shape sphere sphere2 60 -50 -200 20 red
define shape sphere sphere3 -30 20 -250 25 green
# composite
#define shape composite boxtest boxtest1 boxtest2 boxtest3 boxtest4
define shape composite root left right floor sphere sphere2 sphere3
# scene xform
#transform root scale 2 1 1
#transform boxtest rotate 0.3 0.6 0.1 1
#transform boxtest translate 0 0 -100
# lights
define light ambient amb 0.05 0.1 0.05
define light diffuse sun 50 50 -180 1.0 1.0 1.0
define light diffuse sun2 -50 30 -150 0.1 1.0 0.5
# camera
define camera eye 65.0 0 0 0 0 1 -1 -1 1 0
# camera xform
transform eye rotate -45 0 1 0
transform eye translate 100 0 100
# ... and go
render eye image.ppm 1280 720 0