c43452dc1df01a16881ab00ed59f5ef345d22ba5
[occt.git] / tests / v3d / raytrace / refraction
1 puts "========"
2 puts "Ray Tracing - check refraction"
3 puts "========"
4
5 vinit View1
6 vclear
7 vrenderparams -rasterization
8 vsetdispmode 1
9 vsetgradientbg 180 200 255 180 180 180 2
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 vsetlocation S1 2 2 4
36 vsetlocation S2 -2 2 4
37 vsetlocation S3 -6 2 4
38
39 vsetlocation B1 2 6 4
40 vsetlocation B2 -2 6 4
41 vsetlocation B3 -6 6 4
42
43 vsetlocation wall1 -10 0 0
44 vsetlocation wall2 5 0 0
45 vsetlocation wall3 -10 0 -1
46
47 vsetmaterial S1 water
48 vsetmaterial S2 glass
49 vsetmaterial S3 diamond
50
51 vsetmaterial B1 water
52 vsetmaterial B2 glass
53 vsetmaterial B3 diamond
54
55 vsetmaterial wall1 stone
56 vsetmaterial wall2 stone
57 vsetmaterial wall3 pewter
58
59 vsetcolor wall1 red
60 vsetcolor wall2 green
61
62 vsettransparency S1 0.8
63 vsettransparency S2 0.8
64 vsettransparency S3 0.8
65
66 vsettransparency B1 0.8
67 vsettransparency B2 0.8
68 vsettransparency B3 0.8
69
70 vfront
71 vturnview 0 -0.3 0
72 vfit
73 vlight change 0 pos 1 1 1
74 vlight add directional
75 vrenderparams -raytrace -raydepth 5 -shadows off -reflections -fsaa