0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / v3d / glsl / depthprepass
CommitLineData
f88457e6 1puts "========"
2puts "0029300: Visualization, TKOpenGl - provide depth pre-pass option"
3puts "========"
4
5vclear
6vclose ALL
7vinit View1
8
9# display objects
10psphere s 1
11box b 1 2 3
12vaxo
13vdisplay -dispMode 1 s b
14vaspects b -setColor RED -setTransparency 0.5
15vfit
16vzbufftrihedron
17vmoveto 150 250
18vcaps -ffp 0
19vrenderparams -shadingModel phong
20
21vrenderparams -depthPrePass off
22vdump $::imagedir/${::casename}_1.png
23
24vrenderparams -depthPrePass on
25vdump $::imagedir/${::casename}_2.png
26
27if { [diffimage $::imagedir/${::casename}_1.png $::imagedir/${::casename}_2.png 0 0 0 $::imagedir/${::casename}_diff.png] != 0 } { puts "Error: images differ" }