QDepthRange Class

class Qt3DRender ::QDepthRange

Enables remapping depth values written into the depth buffer. 更多...

头: #include <QDepthRange>
qmake: QT += 3drender
Since: Qt 5.14
实例化: DepthRange
继承: Qt3DRender::QRenderState

该类在 Qt 5.14 引入。

特性

公共函数

double farValue () const
double nearValue () const

公共槽

void setFarValue (double value )
void setNearValue (double value )

信号

void farValueChanged (double farValue )
void nearValueChanged (double nearValue )

详细描述

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.

特性文档编制

farValue : double

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

访问函数:

double farValue () const
void setFarValue (double value )

通知程序信号:

void farValueChanged (double farValue )

nearValue : double

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

访问函数:

double nearValue () const
void setNearValue (double value )

通知程序信号:

void nearValueChanged (double nearValue )