0031225: Visualization, TKOpenGl - support cubemap for environment texture within...
[occt.git] / tests / v3d / raytrace / bug26617
CommitLineData
bf02aa7d 1puts "============"
2puts "CR26617"
3puts "============"
4puts ""
5
6##########################################################################################
7# Visualization, Ray Tracing - adopt progressive rendering Path Tracing for rendering stereoscopic pair
8##########################################################################################
9
10# custom shapes
11set aShape1 [locate_data_file occ/Top.brep]
12set aShape2 [locate_data_file occ/Bottom.brep]
13
14# setup 3D viewer content
15vinit name=View1 w=512 h=512
16vglinfo
17
18vvbo 0
19vsetdispmode 1
aaf8d6a9 20vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
bf02aa7d 21restore $aShape1 s1
22restore $aShape2 s2
23vdisplay s1 s2
24vsetmaterial s1 Silver
25vsetmaterial s2 Pewter
26vsetlocation s1 0.0 0.1 0.0
992ed6b3 27vlight -change 0 -dir 0.577 -0.577 -0.577
bf02aa7d 28
29# activate ray-tracing
30vrenderparams -raytrace
31vtextureenv on 5
32vrenderparams -reflections -gi
33
34# activate stereo
35vstereo on
36vstereo -mode anaglyph
37vcamera -iod 0.1
38vfit