2 puts "Ray Tracing - check depth-of-field"
5 pload MODELING VISUALIZATION
10 vlight add positional head 0 pos 0.5 0.5 0.85
11 vlight change 0 sm 0.06
12 vlight change 0 int 25.0
19 vdisplay -noupdate b_1 b_2 b_3 b_5 b_6
20 vlocation -noupdate b_1 -setLocation 1 0 0
21 vlocation -noupdate b_2 -setLocation -1 0 0
22 vlocation -noupdate b_3 -setLocation 0 1 0
23 vlocation -noupdate b_5 -setLocation 0 0 1
24 vlocation -noupdate b_6 -setLocation 0 0 -1
26 vsetmaterial -noupdate b_1 plastic
27 vsetmaterial -noupdate b_2 plastic
28 vsetmaterial -noupdate b_3 plastic
29 vsetmaterial -noupdate b_5 plastic
30 vsetmaterial -noupdate b_6 plastic
31 vbsdf b_1 -kd 1 0.3 0.3 -ks 0
32 vbsdf b_2 -kd 0.3 0.5 1 -ks 0
42 vlocation -noupdate s -setLocation 0.21 0.3 0.2
43 vsetmaterial -noupdate s glass
44 vbsdf s -absorpColor 0.8 0.8 1.0
45 vbsdf s -absorpCoeff 6
49 vlocation -noupdate c -setLocation 0.55 0.3 0.0
50 vlocation -noupdate c -rotate 0 0 0 0 0 1 -30
51 vsetmaterial -noupdate c plastic
52 vbsdf c -kd 1.0 0.8 0.2 -ks 0.3 -n
56 vlocation -noupdate g -setLocation 0.7 0.25 0.2
57 vlocation -noupdate g -rotate 0 0 0 0 0 1 10
58 vsetmaterial -noupdate g glass
59 vbsdf g -absorpColor 0.8 1.0 0.8
60 vbsdf g -absorpCoeff 6
64 vsetmaterial -noupdate r plastic
65 vbsdf r -kd 0.5 0.9 0.3 -ks 0.3 -baseRoughness 0.0 -n
66 vbsdf r -baseFresnel Constant 1.0
67 vlocation r -setLocation 0.5 0.65 0.1
69 vrenderparams -ray -gi -rayDepth 10 -iss
70 vrenderparams -aperture 0.1 -focal 2.0