mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024928: Visualization - FSAA is not working in ray-tracing mode
This commit is contained in:
@@ -1976,8 +1976,7 @@ Standard_Boolean OpenGl_Workspace::RunRaytraceShaders (const Graphic3d_CView& th
|
|||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
myRaytraceFBO1->ColorTexture()->Bind (myGlContext,
|
myRaytraceFBO1->ColorTexture()->Bind (myGlContext, GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture);
|
||||||
GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture);
|
|
||||||
|
|
||||||
myPostFSAAProgram->Bind (myGlContext);
|
myPostFSAAProgram->Bind (myGlContext);
|
||||||
|
|
||||||
@@ -2062,7 +2061,7 @@ Standard_Boolean OpenGl_Workspace::RunRaytraceShaders (const Graphic3d_CView& th
|
|||||||
|
|
||||||
if (anIt != 3) // set input for the next pass
|
if (anIt != 3) // set input for the next pass
|
||||||
{
|
{
|
||||||
aFramebuffer->ColorTexture()->Bind (myGlContext);
|
aFramebuffer->ColorTexture()->Bind (myGlContext, GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture);
|
||||||
aFramebuffer->UnbindBuffer (myGlContext);
|
aFramebuffer->UnbindBuffer (myGlContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user