0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / opengl / data / raytrace / refraction
1 puts "========"
2 puts "Ray Tracing - check refraction"
3 puts "========"
4
5 pload MODELING VISUALIZATION
6 vinit View1
7 vclear
8 vrenderparams -rasterization
9 vsetdispmode 1
10 vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
11
12 box wall1 1 8 8
13 box wall2 1 8 8
14 box wall3 16 8 1
15
16 psphere S1 1.5
17 psphere S2 1.5
18 psphere S3 1.5
19
20 box B1 -1.5 -1.5 -1.5 2.5 2 3
21 box B2 -1.5 -1.5 -1.5 2.5 2 3
22 box B3 -1.5 -1.5 -1.5 2.5 2 3
23
24 vdisplay S1
25 vdisplay S2
26 vdisplay S3
27
28 vdisplay B1
29 vdisplay B2
30 vdisplay B3
31
32 vdisplay wall1
33 vdisplay wall2
34 vdisplay wall3
35
36 vsetlocation S1 2 2 4
37 vsetlocation S2 -2 2 4
38 vsetlocation S3 -6 2 4
39
40 vsetlocation B1 2 6 4
41 vsetlocation B2 -2 6 4
42 vsetlocation B3 -6 6 4
43
44 vsetlocation wall1 -10 0 0
45 vsetlocation wall2 5 0 0
46 vsetlocation wall3 -10 0 -1
47
48 vsetmaterial S1 water
49 vsetmaterial S2 glass
50 vsetmaterial S3 diamond
51
52 vsetmaterial B1 water
53 vsetmaterial B2 glass
54 vsetmaterial B3 diamond
55
56 vsetmaterial wall1 stone
57 vsetmaterial wall2 stone
58 vsetmaterial wall3 pewter
59
60 vsetcolor wall1 red
61 vsetcolor wall2 green
62
63 vsettransparency S1 0.8
64 vsettransparency S2 0.8
65 vsettransparency S3 0.8
66
67 vsettransparency B1 0.8
68 vsettransparency B2 0.8
69 vsettransparency B3 0.8
70
71 vfront
72 vturnview 0 -0.3 0
73 vfit
74 vlight -change 0 -dir -0.577 -0.577 -0.577
75 vlight dirlight -type directional
76 vrenderparams -raytrace -raydepth 5 -shadows off -reflections -fsaa
77 vdump ${imagedir}/${casename}.png