mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0033729: Visualization - Fixed transparency for capping in 'Graphic3d_RTM_BLEND_OIT' mode
Added changes connected with restoring of color mask (if we store and restore only rgb part, we can miss transparency)
This commit is contained in:
parent
f60082f9fb
commit
c1163c9231
@ -121,8 +121,8 @@ namespace
|
|||||||
aContext->ShaderManager()->UpdateClippingState();
|
aContext->ShaderManager()->UpdateClippingState();
|
||||||
|
|
||||||
aContext->core11fwd->glClear (GL_STENCIL_BUFFER_BIT);
|
aContext->core11fwd->glClear (GL_STENCIL_BUFFER_BIT);
|
||||||
const bool aColorMaskBack = aContext->SetColorMask (false);
|
const NCollection_Vec4<bool> aColorMaskBack = aContext->ColorMaskRGBA();
|
||||||
|
aContext->SetColorMask (false);
|
||||||
// override aspects, disable culling
|
// override aspects, disable culling
|
||||||
theWorkspace->SetAspects (&theWorkspace->NoneCulling());
|
theWorkspace->SetAspects (&theWorkspace->NoneCulling());
|
||||||
theWorkspace->ApplyAspects();
|
theWorkspace->ApplyAspects();
|
||||||
@ -164,7 +164,7 @@ namespace
|
|||||||
aContext->ShaderManager()->UpdateClippingState();
|
aContext->ShaderManager()->UpdateClippingState();
|
||||||
|
|
||||||
// render capping plane using the generated stencil mask
|
// render capping plane using the generated stencil mask
|
||||||
aContext->SetColorMask (aColorMaskBack);
|
aContext->SetColorMaskRGBA (aColorMaskBack);
|
||||||
if (theWorkspace->UseDepthWrite())
|
if (theWorkspace->UseDepthWrite())
|
||||||
{
|
{
|
||||||
aContext->core11fwd->glDepthMask (GL_TRUE);
|
aContext->core11fwd->glDepthMask (GL_TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user