mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Aspect_IS_HOLLOW now an alias to Aspect_IS_EMPTY and Aspect_IS_HIDDENLINE does not implicitly enables mesh edges, so that Graphic3d_AspectFillArea3d::SetDrawEdges() should be set independently. OpenGl_ShaderManager now provides built-in GLSL programs for drawing mesh edges in single pass (and on OpenGL ES which does not provide glPolygonMode()). Graphic3d_RenderingParams::ToEnableAlphaToCoverage is now enabled by default and properly handled at TKOpenGl level - enables coverage for Graphic3d_AlphaMode_Mask primitives. OpenGl_PrimitiveArray now uses GLSL programs instead of glPolygonMode() by default, which can be managed by OpenGl_Caps::usePolygonMode flag (desktop OpenGL only). glPolygonMode() is also used as fallback regardless OpenGl_Caps::usePolygonMode flag when GLSL programs are not supported (Geometry Shaders are required) or stipple line style is required (not implemented within Face GLSL). vaspects command has been extended by -setInterior -setDrawEdges -setEdgeColor -setEdgeType -setEdgeWidth arguments replacing vsetinteriorstyle/vsetedgetype/vunsetedgetype commands. vaspects now accepts arguments without "set" prefix. ViewerTest::ParseColor() now parses RGBA color. Redundant command BUC60738 has been removed. AIS_ColorScale - fixed usage of uninitialized FillArea aspects.
39 lines
801 B
Plaintext
39 lines
801 B
Plaintext
puts "========"
|
|
puts "Alpha test modes"
|
|
puts "========"
|
|
|
|
# create box
|
|
box b 1 2 3
|
|
|
|
# draw box
|
|
vinit View1
|
|
vclear
|
|
vzbufftrihedron
|
|
vaxo
|
|
vdisplay -dispMode 1 b
|
|
vfit
|
|
vtexture b [locate_data_file images/marker_box2.png]
|
|
vrotate 0.2 0.0 0.0
|
|
vaspects -setAlphaMode mask 0.5
|
|
vmoveto 250 250
|
|
|
|
# take snapshots
|
|
vrenderparams -msaa 0 -alphaToCoverage 0
|
|
vcaps -ffp 1
|
|
vdump $::imagedir/${::casename}_msaa0_ffp.png
|
|
|
|
vcaps -ffp 0
|
|
vdump $::imagedir/${::casename}_msaa0.png
|
|
|
|
vrenderparams -msaa 2 -alphaToCoverage 0
|
|
vdump $::imagedir/${::casename}_msaa2.png
|
|
|
|
vrenderparams -msaa 2 -alphaToCoverage 1
|
|
vdump $::imagedir/${::casename}_msaa2_cov.png
|
|
|
|
vrenderparams -msaa 8 -alphaToCoverage 0
|
|
vdump $::imagedir/${::casename}_msaa8.png
|
|
|
|
vrenderparams -msaa 8 -alphaToCoverage 1
|
|
vdump $::imagedir/${::casename}_msaa8_cov.png
|