class QDepthRange

Enables remapping depth values written into the depth buffer. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QDepthRange

Synopsis

Properties

Methods

Slots

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property farValueᅟ: float

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Access functions:
property nearValueᅟ: float

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

farValue()
Return type:

float

See also

setFarValue()

Getter of property farValueᅟ .

farValueChanged(farValue)
Parameters:

farValue – float

Notification signal of property farValueᅟ .

nearValue()
Return type:

float

See also

setNearValue()

Getter of property nearValueᅟ .

nearValueChanged(nearValue)
Parameters:

nearValue – float

Notification signal of property nearValueᅟ .

setFarValue(value)
Parameters:

value – float

See also

farValue()

Setter of property farValueᅟ .

setNearValue(value)
Parameters:

value – float

See also

nearValue()

Setter of property nearValueᅟ .