1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug26434
kgv b8db9379fe 0032203: Draw Harness, ViewerTest - drop dependency from OpenGL
Added TKOpenGlTest and TKD3DHostTest Draw Harness plugins.
TKOpenGlTest is automatically loaded by ViewerTest::ViewerInit().

Commands vgldebug, vvbo, vcaps and vuserdraw have been moved to TKOpenGlTest.
New command vglshaders lists GLSL programs defined by OpenGl_GraphicDriver,
previously implemented by "vshaderprog -list".

Added new command vdriver for graphic driver selection.
Removed erroneous code from command vstereo.
2021-03-17 19:56:54 +03:00

42 lines
768 B
Plaintext

puts "============"
puts "CR26434"
puts "============"
puts ""
##########################################################################################
puts "Visualization - Textured objects should have priority over the environment mapping"
##########################################################################################
pload MODELING VISUALIZATION
vclear
vclose all
vinit View1
vsetdispmode 1
box b0 -1 -1 -1 1 2 3
box b1 1 1 1 1 2 3
vdisplay b0 b1
vzbufftrihedron
vfit
vdump $imagedir/${casename}_0.png
vtexture b1 0
vdump $imagedir/${casename}_1.png
puts "Checking that texture have priority over the environment mapping"
vtextureenv on 0
vdump $imagedir/${casename}_2.png
vmoveto 100 300
vmoveto 0 0
vdump $imagedir/${casename}_3.png