mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0027728: Visualization, OpenGl_Text - handle correctly object local transformation
OpenGl_Context::ApplyWorldViewMatrix() - reset ModelWorld matrix to identity for consistency with FFP.
This commit is contained in:
parent
c6f530b8d9
commit
458e3c0deb
@ -70,6 +70,7 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_Context,Standard_Transient)
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
static const Handle(OpenGl_Resource) NULL_GL_RESOURCE;
|
static const Handle(OpenGl_Resource) NULL_GL_RESOURCE;
|
||||||
|
static const OpenGl_Mat4 THE_IDENTITY_MATRIX;
|
||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
@ -2879,6 +2880,7 @@ void OpenGl_Context::ApplyWorldViewMatrix()
|
|||||||
|
|
||||||
if (!myShaderManager->IsEmpty())
|
if (!myShaderManager->IsEmpty())
|
||||||
{
|
{
|
||||||
|
myShaderManager->UpdateModelWorldStateTo (THE_IDENTITY_MATRIX);
|
||||||
myShaderManager->UpdateWorldViewStateTo (WorldViewState.Current());
|
myShaderManager->UpdateWorldViewStateTo (WorldViewState.Current());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,8 @@ puts ""
|
|||||||
|
|
||||||
set BugNumber OCC22368
|
set BugNumber OCC22368
|
||||||
|
|
||||||
# enable FFP until bug-fix for GLSL
|
vclear
|
||||||
vcaps -ffp 1
|
vinit View1
|
||||||
|
|
||||||
vinit
|
|
||||||
vtrihedron trihedron
|
vtrihedron trihedron
|
||||||
OCC74_set trihedron 3
|
OCC74_set trihedron 3
|
||||||
|
|
||||||
@ -23,11 +21,7 @@ set y 190
|
|||||||
|
|
||||||
vselect ${x3} ${y}
|
vselect ${x3} ${y}
|
||||||
|
|
||||||
set new_x 100
|
vsetlocation trihedron 100 100 100
|
||||||
set new_y 100
|
|
||||||
set new_z 100
|
|
||||||
|
|
||||||
vsetlocation trihedron ${new_x} ${new_y} ${new_z}
|
|
||||||
|
|
||||||
set status 0
|
set status 0
|
||||||
for {set i ${x1} } {$i <= ${x2} } {incr i} {
|
for {set i ${x1} } {$i <= ${x2} } {incr i} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user