| makVrv::DtPerChannelData::DtPerChannelData |
( |
| ) |
|
|
delete |
| virtual makVrv::DtPerChannelData::~DtPerChannelData |
( |
| ) |
|
|
protectedvirtual |
Resizes myCascades to logicalSplitCount entries, initializing mySplitIndex on each entry, sets myCameraCount to cameraCount, and ensures there is always at least one cascade slot.
- Parameters
-
| logicalSplitCount | The desired logical split count. Values less than 1 are clamped to 1. |
| cameraCount | The number of actual shadow cameras to be created. Must be <= logicalSplitCount. |
Updates per-cascade importance scores and refresh flags for the current frame.
Computes a priority score for each cascade based on its index (nearer cascades score higher) and how many frames have elapsed since its last refresh. Cascades marked as persistent are pinned to maximum importance and always refreshed. The remaining budget of additional passes is then allocated to the highest-scoring cascades, with lower-scoring cascades marked to skip rendering this frame.
- Parameters
-
| shadowSettings | The current shadow settings object. |
| void makVrv::DtPerChannelData::updateCascadeOrthoBoxVisualizer |
( |
int |
splitIndex, |
|
|
const osg::Matrix & |
lightViewMatrix, |
|
|
const osg::Vec3d & |
segmentMin, |
|
|
const osg::Vec3d & |
segmentMax, |
|
|
const osg::Vec3d & |
frustumMin, |
|
|
const osg::Vec3d & |
frustumMax, |
|
|
float |
zPadding |
|
) |
| |
Transforms the cascade's light-space bounding box back to world space and updates the debug ortho box visualizer geometry for the given split.
- Parameters
-
| splitIndex | The index of the cascade split to update. |
| lightViewMatrix | The light view matrix for this cascade. |
| segmentMin | The minimum corner of the cascade's shadow segment in light space. |
| segmentMax | The maximum corner of the cascade's shadow segment in light space. |
| frustumMin | The minimum corner of the camera frustum slice in light space. |
| frustumMax | The maximum corner of the camera frustum slice in light space. |
| zPadding | The Z padding value from DtShadowTweakables applied to the frustum extents. |
| void makVrv::DtPerChannelData::removeVisualizers |
( |
| ) |
|
|
protected |
| void makVrv::DtPerChannelData::initCascadeSplitVisualizers |
( |
| ) |
|
|
protected |
Creates and attaches the wireframe frustum and ortho box visualizers for each cascade split to the visualizer group and geode. Called during debug visualizer initialization.
| const int makVrv::DtPerChannelData::theMaxNumberOfCascades |
|
staticprotected |
The logical cascade splits used for shadow rendering. Each entry represents one depth sub-frustum of the view camera, covering a progressively farther range from the viewer. The number of entries is the "logical split count" � the total number of shadow splits configured by the user via shadow settings (numberOfSplits), plus any far cascade.
In standard mode, one osg::Camera is created per cascade (myCameraCount == myCascades.size()). In viewport multicast mode, multiple logical splits are rendered in a single camera pass using the GPU multicast extension, so myCameraCount < myCascades.size(). In that case, myCascades.size() still reflects the full logical split count, but only myCameraCount cameras are actually created and submitted for rendering.
Number of actual shadow cameras created and used for rendering.
In standard mode this equals myCascades.size() (one camera per logical split). When viewport multicast is enabled, the GPU can render multiple cascade splits in a single camera pass, so myCameraCount will be less than myCascades.size(). Use myCascades.size() to iterate over logical splits; use myCameraCount to iterate over the physical cameras submitted to the render graph.
| osg::ref_ptr<osg::MatrixTransform> makVrv::DtPerChannelData::myFrustumCenterTarget |
|
protected |
| osg::ref_ptr<osgEarth::VirtualProgram> makVrv::DtPerChannelData::myVirtualProgram |
|
protected |
| osg::ref_ptr<osg::StateSet> makVrv::DtPerChannelData::mySharedStateSet |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myShadowTexGenUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myReceiveShadowsUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myInverseShadowMapSizeUniform |
|
protected |
| double makVrv::DtPerChannelData::myRefreshTimer |
|
protected |
| bool makVrv::DtPerChannelData::myJustInitialized |
|
protected |
| bool makVrv::DtPerChannelData::myNotInitialized |
|
protected |
| osg::Vec3d makVrv::DtPerChannelData::myLastCameraPosition |
|
protected |
| osg::Vec3d makVrv::DtPerChannelData::myLastLargeShadowMapCameraPosition |
|
protected |
| double makVrv::DtPerChannelData::myCurrentSimTimeScale |
|
protected |
| float makVrv::DtPerChannelData::myLastFarDistance |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::mySplitDistancesWorldUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myUseReverseZBuffer |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myShadowAmbientFactorUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> makVrv::DtPerChannelData::myInvNumSplitsInterpUniform |
|
protected |
| osg::ref_ptr<osg::Group> makVrv::DtPerChannelData::myVisualizersGroup |
|
protected |
| osg::ref_ptr<osg::Geode> makVrv::DtPerChannelData::myVisualizers |
|
protected |
| osg::ref_ptr<osg::Camera> makVrv::DtPerChannelData::myOverlayDebugCamera |
|
protected |
| osg::ref_ptr<osg::Camera> makVrv::DtPerChannelData::myOverlayDebugFarCamera |
|
protected |
| osg::ref_ptr<osg::MatrixTransform> makVrv::DtPerChannelData::myOrigin |
|
protected |
| unsigned int makVrv::DtPerChannelData::myPcfFilterCount |
|
protected |
| double makVrv::DtPerChannelData::myLastSimTime |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-3-branch/include/vrvOsg/DtPerChannelData.h