mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether the object is fully clipped or not
OpenGl_Structure::Render() now checks if structure is entirely clipped to skip rendering at all, or entirely NOT clipped to disable clipping / capping plane. OpenGl_ShaderManager now defines dedicated GLSL programs for one and two clipping planes to optimize rendering on slow hardware.
This commit is contained in:
@@ -316,6 +316,15 @@ public:
|
||||
return aMin1 < aMin2 ? aMin1 : aMin2;
|
||||
}
|
||||
|
||||
//! Computes the dot product.
|
||||
Element_t Dot (const NCollection_Vec4& theOther) const
|
||||
{
|
||||
return x() * theOther.x() +
|
||||
y() * theOther.y() +
|
||||
z() * theOther.z() +
|
||||
w() * theOther.w();
|
||||
}
|
||||
|
||||
//! Compute per-component division by scale factor.
|
||||
NCollection_Vec4& operator/= (const Element_t theInvFactor)
|
||||
{
|
||||
|
Reference in New Issue
Block a user