16#ifndef QGSSHADOWRENDERVIEW_H
17#define QGSSHADOWRENDERVIEW_H
35 class QRenderSettings;
37 class QFrameGraphNode;
40 class QSubtreeEnabler;
42 class QCameraSelector;
44 class QRenderTargetSelector;
46 class QRenderStateSet;
48 class QRenderTargetOutput;
49 class QTexture2DArray;
92 static constexpr int mDefaultMapResolution = 2048;
93 Qt3DCore::QEntity *mRootEntity =
nullptr;
96 Qt3DRender::QLayer *mEntityCastingShadowsLayer =
nullptr;
97 Qt3DRender::QLayerFilter *mLayerFilter =
nullptr;
99 Qt3DRender::QTexture2DArray *mMapTextureArray =
nullptr;
101 void buildRenderPass();
static constexpr int NUM_SHADOW_CASCADES
Number of shadow map cascades.
QgsAbstractRenderView(const QString &viewName)
Constructor for QgsAbstractRenderView with the specified parent object.
Definition of a directional light in a 3D map scene.
Base class for light sources in 3d scenes.
Qt3DRender::QLayer * entityCastingShadowsLayer() const
Returns the layer to be used by entities to be included in this renderview.
Qt3DRender::QCamera * lightCamera(int index)
Returns the light camera with the specified index.
void setMapSize(int width, int height)
Update shadow depth texture size.
void setEnabled(bool enable) override
Enable or disable via enable the renderview sub tree.
Qt3DRender::QTexture2DArray * mapTextureArray() const
Returns the shadow depth texture array.
QgsShadowRenderView(const QString &viewName, Qt3DCore::QEntity *rootEntity)
Default constructor.
Contains configuration for rendering shadows.