mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027750: Visualization, V3d_View - remove unused functionality ZClipping and ZCueing
Methods V3d_View::SetZClippingType(), ::SetZClippingDepth(), ::SetZClippingWidth(), ::SetZCueingDepth(), ::SetZCueingWidth(), ::SetZCueingOn(), ::SetZCueingOff() have been removed.
This commit is contained in:
@@ -110,11 +110,6 @@ uniform sampler2D occActiveSampler; //!< Current active sampl
|
||||
uniform vec4 occTexTrsf2d[2]; //!< 2D texture transformation parameters
|
||||
uniform float occPointSize; //!< point size
|
||||
|
||||
// clipping planes state
|
||||
const int OccEquationCoords_View = 0; //!< view-space clipping plane
|
||||
const int OccEquationCoords_World = 1; //!< world-space clipping plane
|
||||
|
||||
//! Parameters of clipping planes
|
||||
uniform vec4 occClipPlaneEquations[THE_MAX_CLIP_PLANES];
|
||||
uniform THE_PREC_ENUM int occClipPlaneSpaces [THE_MAX_CLIP_PLANES];
|
||||
uniform THE_PREC_ENUM int occClipPlaneCount; //!< Total number of clip planes
|
||||
|
@@ -179,20 +179,9 @@ void main()
|
||||
for (int anIndex = 0; anIndex < occClipPlaneCount; ++anIndex)
|
||||
{
|
||||
vec4 aClipEquation = occClipPlaneEquations[anIndex];
|
||||
int aClipSpace = occClipPlaneSpaces[anIndex];
|
||||
if (aClipSpace == OccEquationCoords_World)
|
||||
if (dot (aClipEquation.xyz, PositionWorld.xyz / PositionWorld.w) + aClipEquation.w < 0.0)
|
||||
{
|
||||
if (dot (aClipEquation.xyz, PositionWorld.xyz / PositionWorld.w) + aClipEquation.w < 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
}
|
||||
else if (aClipSpace == OccEquationCoords_View)
|
||||
{
|
||||
if (dot (aClipEquation.xyz, Position.xyz) + aClipEquation.w < 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
discard;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user