16#ifndef QGSSHADOWRENDERVIEW_H
17#define QGSSHADOWRENDERVIEW_H
32 class QRenderSettings;
34 class QFrameGraphNode;
37 class QSubtreeEnabler;
39 class QCameraSelector;
41 class QRenderTargetSelector;
43 class QRenderStateSet;
45 class QRenderTargetOutput;
89 static constexpr int mDefaultMapResolution = 2048;
92 Qt3DRender::QLayer *mEntityCastingShadowsLayer =
nullptr;
93 Qt3DRender::QLayerFilter *mLayerFilter =
nullptr;
94 Qt3DRender::QCamera *mLightCamera =
nullptr;
95 Qt3DRender::QTexture2D *mMapTexture =
nullptr;
97 Qt3DRender::QRenderTarget *buildTextures();
98 void buildRenderPass();
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.
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.
QgsShadowRenderView(const QString &viewName)
Default constructor.
Qt3DRender::QCamera * lightCamera()
Returns the light camera.
Qt3DRender::QTexture2D * mapTexture() const
Returns shadow depth texture.
Contains configuration for rendering shadows.