0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / v3d / glsl / msaa
CommitLineData
3c4b62a4 1puts "========"
2puts "Multisampling FBOs"
3puts "========"
4
5pload MODELING VISUALIZATION
6box b 2 3 1
7vclear
8vclose ALL
9vinit View1 w=512 h=512
aaf8d6a9 10vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
3c4b62a4 11vsetdispmode 0
12vdisplay b
13vfit
14vrotate 0.5 0 0
15vzbufftrihedron
16
17vrenderparams -msaa 0
e3d02d1f 18vdump $::imagedir/${::casename}_512x512_msaa0.png
3c4b62a4 19vrenderparams -msaa 2
e3d02d1f 20vdump $::imagedir/${::casename}_512x512_msaa2.png
3c4b62a4 21vrenderparams -msaa 4
e3d02d1f 22vdump $::imagedir/${::casename}_512x512_msaa4.png
3c4b62a4 23vrenderparams -msaa 8
e3d02d1f 24vdump $::imagedir/${::casename}_512x512_msaa8.png
521b0d7f 25
26# check dump with resolutions not equal to window size
e3d02d1f 27vdump $::imagedir/${::casename}_1920x1080_msaa8.png -width 1920 -height 1080
28vdump $::imagedir/${::casename}_2560x1440_msaa8.png -width 2560 -height 1440
521b0d7f 29
30# check dump with stereo
31vstereo anaglyph
e3d02d1f 32vdump $::imagedir/${::casename}_512x512_msaa8stereo.png -stereo blend
33vdump $::imagedir/${::casename}_1920x1080_msaa8stereo.png -width 1920 -height 1080 -stereo blend
34vdump $::imagedir/${::casename}_2560x1440_msaa8stereo.png -width 2560 -height 1440 -stereo blend
521b0d7f 35
36vraytrace 1
37vsetdispmode b 1
e3d02d1f 38vdump $::imagedir/${::casename}_512x512_msaa8stereort.png -stereo blend
39vdump $::imagedir/${::casename}_1920x1080_msaa8stereort.png -width 1920 -height 1080 -stereo blend
40vdump $::imagedir/${::casename}_2560x1440_msaa8stereort.png -width 2560 -height 1440 -stereo blend
521b0d7f 41vsetdispmode b 0
42vraytrace 0