0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / v3d / glsl / alpha_mask
CommitLineData
c40eb6b9 1puts "========"
2puts "Alpha test modes"
3puts "========"
4
5# create box
6box b 1 2 3
7
8# draw box
9vinit View1
10vclear
11vzbufftrihedron
12vaxo
13vdisplay -dispMode 1 b
14vfit
15vtexture b [locate_data_file images/marker_box2.png]
16vrotate 0.2 0.0 0.0
17vaspects -setAlphaMode mask 0.5
18vmoveto 250 250
19
20# take snapshots
21vrenderparams -msaa 0 -alphaToCoverage 0
22vcaps -ffp 1
23vdump $::imagedir/${::casename}_msaa0_ffp.png
24
25vcaps -ffp 0
26vdump $::imagedir/${::casename}_msaa0.png
27
28vrenderparams -msaa 2 -alphaToCoverage 0
29vdump $::imagedir/${::casename}_msaa2.png
30
31vrenderparams -msaa 2 -alphaToCoverage 1
32vdump $::imagedir/${::casename}_msaa2_cov.png
33
2a332745 34vrenderparams -msaa 8 -alphaToCoverage 0
c40eb6b9 35vdump $::imagedir/${::casename}_msaa8.png
36
37vrenderparams -msaa 8 -alphaToCoverage 1
38vdump $::imagedir/${::casename}_msaa8_cov.png