25ef750e |
1 | puts "========" |
2 | puts "Ray Tracing - check refraction" |
3 | puts "========" |
4 | |
5 | vinit View1 |
6 | vclear |
7 | vrenderparams -rasterization |
8 | vsetdispmode 1 |
aaf8d6a9 |
9 | vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL |
25ef750e |
10 | |
11 | box wall1 1 8 8 |
12 | box wall2 1 8 8 |
13 | box wall3 16 8 1 |
14 | |
15 | psphere S1 1.5 |
16 | psphere S2 1.5 |
17 | psphere S3 1.5 |
18 | |
19 | box B1 -1.5 -1.5 -1.5 2.5 2 3 |
20 | box B2 -1.5 -1.5 -1.5 2.5 2 3 |
21 | box B3 -1.5 -1.5 -1.5 2.5 2 3 |
22 | |
23 | vdisplay S1 |
24 | vdisplay S2 |
25 | vdisplay S3 |
26 | |
27 | vdisplay B1 |
28 | vdisplay B2 |
29 | vdisplay B3 |
30 | |
31 | vdisplay wall1 |
32 | vdisplay wall2 |
33 | vdisplay wall3 |
34 | |
35 | vtexture S1 8 |
36 | vtexture S2 2 |
37 | vtexture S3 3 |
38 | |
39 | vtexture B1 4 |
40 | vtexture B2 5 |
41 | vtexture B3 6 |
42 | |
43 | vsetlocation S1 2 2 4 |
44 | vsetlocation S2 -2 2 4 |
45 | vsetlocation S3 -6 2 4 |
46 | |
47 | vsetlocation B1 2 6 4 |
48 | vsetlocation B2 -2 6 4 |
49 | vsetlocation B3 -6 6 4 |
50 | |
51 | vsetlocation wall1 -10 0 0 |
52 | vsetlocation wall2 5 0 0 |
53 | vsetlocation wall3 -10 0 -1 |
54 | |
55 | vsetmaterial S1 gold |
56 | vsetmaterial S2 silver |
57 | vsetmaterial S3 copper |
58 | |
59 | vsetmaterial B1 steel |
60 | vsetmaterial B2 pewter |
61 | vsetmaterial B3 chrome |
62 | |
63 | vsetmaterial wall1 stone |
64 | vsetmaterial wall2 stone |
65 | vsetmaterial wall3 pewter |
66 | |
67 | vsetcolor wall1 red |
68 | vsetcolor wall2 green |
69 | |
27af3052 |
70 | vfront |
25ef750e |
71 | vturnview 0 -0.3 0 |
72 | vfit |
89d855ba |
73 | vlight -clear |
74 | vlight -add ambient |
75 | vlight -add directional -dir -0.577 -0.577 -0.577 -head 1 |
2daa5d95 |
76 | vlight -add directional -dir 0.577 0.577 0.577 -head 0 |
89d855ba |
77 | |
25ef750e |
78 | vrenderparams -raytrace -raydepth 3 -shadows on -reflections -fsaa |