]> OCCT Git - occt.git/commit
0031571: Visualization, TKOpenGl - provide depth peeling OIT option
authorkgv <kgv@opencascade.com>
Tue, 19 May 2020 07:47:25 +0000 (10:47 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 20 Jan 2021 18:21:59 +0000 (21:21 +0300)
commit78c4e836b1844a00086e84e76085cf2db3f7480b
tree0294ea51196c046fdbb46f2640b96dfacda756f7
parent9f45d35b6b655d056c908d627b0b86cc04ad4cb3
0031571: Visualization, TKOpenGl - provide depth peeling OIT option

Graphic3d_RenderTransparentMethod has been extended by Graphic3d_RTM_DEPTH_PEELING_OIT,
which is handled by OpenGl_LayerList::renderTransparent().

OpenGl_FrameBuffer::Init() now does not silently ignore unknown color attachment format and return failure.
OpenGl_FrameBuffer::InitWrapper() - added constructor wrapping existing color textures.

v3d/transparency/oit: test case added
31 files changed:
src/Graphic3d/Graphic3d_RenderTransparentMethod.hxx
src/Graphic3d/Graphic3d_RenderingParams.hxx
src/Graphic3d/Graphic3d_ShaderProgram.cxx
src/Graphic3d/Graphic3d_ShaderProgram.hxx
src/Graphic3d/Graphic3d_TextureUnit.hxx
src/OpenGl/FILES
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_DepthPeeling.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_DepthPeeling.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_FrameStats.cxx
src/OpenGl/OpenGl_LayerList.cxx
src/OpenGl/OpenGl_SetOfShaderPrograms.hxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_ShaderProgram.cxx
src/OpenGl/OpenGl_ShaderProgram.hxx
src/OpenGl/OpenGl_ShaderStates.hxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_TextureFormat.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/Shaders/Declarations.glsl
src/Shaders/DeclarationsImpl.glsl
src/Shaders/Shaders_DeclarationsImpl_glsl.pxx
src/Shaders/Shaders_Declarations_glsl.pxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/v3d/transparency/oit [new file with mode: 0644]