1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/v3d/glsl/depthprepass
kgv f88457e638 0029300: Visualization, TKOpenGl - provide depth pre-pass option
OpenGl_LayerList::Render() now handles new option Graphic3d_RenderingParams::ToEnableDepthPrepass
which prepends additional pass to rendering pipeline filling Depth Buffer in advance.
2017-11-09 18:08:16 +03:00

28 lines
641 B
Plaintext

puts "========"
puts "0029300: Visualization, TKOpenGl - provide depth pre-pass option"
puts "========"
vclear
vclose ALL
vinit View1
# display objects
psphere s 1
box b 1 2 3
vaxo
vdisplay -dispMode 1 s b
vaspects b -setColor RED -setTransparency 0.5
vfit
vzbufftrihedron
vmoveto 150 250
vcaps -ffp 0
vrenderparams -shadingModel phong
vrenderparams -depthPrePass off
vdump $::imagedir/${::casename}_1.png
vrenderparams -depthPrePass on
vdump $::imagedir/${::casename}_2.png
if { [diffimage $::imagedir/${::casename}_1.png $::imagedir/${::casename}_2.png 0 0 0 $::imagedir/${::casename}_diff.png] != 0 } { puts "Error: images differ" }