Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
ShadowmapHelpers Namespace Reference

Functions

void addDebugFrustum (const QSSGBoxPoints &frustumPoints, const QColor &color, QSSGDebugDrawSystem *debugDrawSystem)
 
void addDebugBox (const QSSGBoxPoints &boxUnsorted, const QColor &color, QSSGDebugDrawSystem *debugDrawSystem)
 
void addDirectionalLightDebugBox (const QSSGBoxPoints &box, QSSGDebugDrawSystem *debugDrawSystem)
 
QList< QVector3DintersectBoxByFrustum (const QSSGBoxPoints &frustumPoints, const QSSGBoxPoints &box, QSSGDebugDrawSystem *debugDrawSystem, const QColor &color)
 
QList< QVector3DintersectBoxByBox (const QSSGBounds3 &boxBounds, const QSSGBoxPoints &box)
 

Function Documentation

◆ addDebugBox()

void ShadowmapHelpers::addDebugBox ( const QSSGBoxPoints & boxUnsorted,
const QColor & color,
QSSGDebugDrawSystem * debugDrawSystem )

Definition at line 18 of file qssgshadowmaphelpers.cpp.

References BOX_LINE_INDICES, QSSGDebugDrawSystem::drawLine(), line, and QSSGDebugDrawSystem::setEnabled().

Referenced by addDebugFrustum(), and RenderHelpers::rhiRenderShadowMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addDebugFrustum()

void ShadowmapHelpers::addDebugFrustum ( const QSSGBoxPoints & frustumPoints,
const QColor & color,
QSSGDebugDrawSystem * debugDrawSystem )

Definition at line 29 of file qssgshadowmaphelpers.cpp.

References addDebugBox().

Referenced by computeShadowCameraFromFrustum().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addDirectionalLightDebugBox()

void ShadowmapHelpers::addDirectionalLightDebugBox ( const QSSGBoxPoints & box,
QSSGDebugDrawSystem * debugDrawSystem )

Definition at line 34 of file qssgshadowmaphelpers.cpp.

References QColorConstants::Blue, dir, QSSGDebugDrawSystem::drawLine(), QColorConstants::Green, qSqrt(), QColorConstants::Red, QSSGDebugDrawSystem::setEnabled(), and QColorConstants::Yellow.

Referenced by RenderHelpers::rhiRenderShadowMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intersectBoxByBox()

QList< QVector3D > ShadowmapHelpers::intersectBoxByBox ( const QSSGBounds3 & boxBounds,
const QSSGBoxPoints & box )

Definition at line 357 of file qssgshadowmaphelpers.cpp.

References QColorConstants::Black, BOTTOM, QVector3D::crossProduct(), i, and sliceBoxByPlanes().

Referenced by computeShadowCameraFromFrustum().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intersectBoxByFrustum()

QList< QVector3D > ShadowmapHelpers::intersectBoxByFrustum ( const QSSGBoxPoints & frustumPoints,
const QSSGBoxPoints & box,
QSSGDebugDrawSystem * debugDrawSystem,
const QColor & color )

Referenced by computeShadowCameraFromFrustum().

+ Here is the caller graph for this function: