0030592: Draw Harness, ViewerTest - provide vbackground command unifying vsetbg,...
[occt.git] / tests / v3d / raytrace / refraction
CommitLineData
dc9ef964 1puts "========"
2puts "Ray Tracing - check refraction"
3puts "========"
4
5vinit View1
bc8c79bb 6vclear
7vrenderparams -rasterization
dc9ef964 8vsetdispmode 1
293211ae 9vbackground -gradient 0.705882 0.784314 1 0.705882 0.705882 0.705882 -gradientMode VERTICAL
dc9ef964 10
11box wall1 1 8 8
12box wall2 1 8 8
13box wall3 16 8 1
14
15psphere S1 1.5
16psphere S2 1.5
17psphere S3 1.5
18
19box B1 -1.5 -1.5 -1.5 2.5 2 3
20box B2 -1.5 -1.5 -1.5 2.5 2 3
21box B3 -1.5 -1.5 -1.5 2.5 2 3
22
23vdisplay S1
24vdisplay S2
25vdisplay S3
26
27vdisplay B1
28vdisplay B2
29vdisplay B3
30
31vdisplay wall1
32vdisplay wall2
33vdisplay wall3
34
35vsetlocation S1 2 2 4
36vsetlocation S2 -2 2 4
37vsetlocation S3 -6 2 4
38
39vsetlocation B1 2 6 4
40vsetlocation B2 -2 6 4
41vsetlocation B3 -6 6 4
42
43vsetlocation wall1 -10 0 0
44vsetlocation wall2 5 0 0
45vsetlocation wall3 -10 0 -1
46
47vsetmaterial S1 water
48vsetmaterial S2 glass
49vsetmaterial S3 diamond
50
51vsetmaterial B1 water
52vsetmaterial B2 glass
53vsetmaterial B3 diamond
54
55vsetmaterial wall1 stone
56vsetmaterial wall2 stone
bc8c79bb 57vsetmaterial wall3 pewter
dc9ef964 58
59vsetcolor wall1 red
60vsetcolor wall2 green
61
62vsettransparency S1 0.8
63vsettransparency S2 0.8
64vsettransparency S3 0.8
65
66vsettransparency B1 0.8
67vsettransparency B2 0.8
68vsettransparency B3 0.8
69
27af3052 70vfront
dc9ef964 71vturnview 0 -0.3 0
72vfit
992ed6b3 73vlight -change 0 -dir -0.577 -0.577 -0.577
dc9ef964 74vlight add directional
bc8c79bb 75vrenderparams -raytrace -raydepth 5 -shadows off -reflections -fsaa