1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0029517: Visualization - introduce AlphaMode property defining alpha value handling options

This commit is contained in:
kgv
2018-02-20 16:32:52 +03:00
committed by bugmaster
parent ff6d145402
commit c40eb6b950
29 changed files with 371 additions and 63 deletions

View File

@@ -869,6 +869,7 @@ void OpenGl_View::render (Graphic3d_Camera::Projection theProjection,
// ==================================
const Handle(OpenGl_Context)& aContext = myWorkspace->GetGlContext();
aContext->SetSampleAlphaToCoverage (myRenderParams.ToEnableAlphaToCoverage);
#if !defined(GL_ES_VERSION_2_0)
// Disable current clipping planes
@@ -1032,6 +1033,9 @@ void OpenGl_View::render (Graphic3d_Camera::Projection theProjection,
renderFrameStats();
}
myWorkspace->ResetAppliedAspect();
aContext->SetSampleAlphaToCoverage (false);
// reset FFP state for safety
aContext->BindProgram (Handle(OpenGl_ShaderProgram)());
if (aContext->caps->ffpEnable)