0031704: Visualization - add an interactive object AIS_LightSource representing a...
[occt.git] / tests / v3d / raytrace / textures
CommitLineData
25ef750e 1puts "========"
2puts "Ray Tracing - check refraction"
3puts "========"
4
5vinit View1
6vclear
7vrenderparams -rasterization
8vsetdispmode 1
aaf8d6a9 9vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
25ef750e 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
35vtexture S1 8
36vtexture S2 2
37vtexture S3 3
38
39vtexture B1 4
40vtexture B2 5
41vtexture B3 6
42
43vsetlocation S1 2 2 4
44vsetlocation S2 -2 2 4
45vsetlocation S3 -6 2 4
46
47vsetlocation B1 2 6 4
48vsetlocation B2 -2 6 4
49vsetlocation B3 -6 6 4
50
51vsetlocation wall1 -10 0 0
52vsetlocation wall2 5 0 0
53vsetlocation wall3 -10 0 -1
54
55vsetmaterial S1 gold
56vsetmaterial S2 silver
57vsetmaterial S3 copper
58
59vsetmaterial B1 steel
60vsetmaterial B2 pewter
61vsetmaterial B3 chrome
62
63vsetmaterial wall1 stone
64vsetmaterial wall2 stone
65vsetmaterial wall3 pewter
66
67vsetcolor wall1 red
68vsetcolor wall2 green
69
27af3052 70vfront
25ef750e 71vturnview 0 -0.3 0
72vfit
89d855ba 73vlight -clear
74vlight -add ambient
75vlight -add directional -dir -0.577 -0.577 -0.577 -head 1
2daa5d95 76vlight -add directional -dir 0.577 0.577 0.577 -head 0
89d855ba 77
25ef750e 78vrenderparams -raytrace -raydepth 3 -shadows on -reflections -fsaa