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;
74 virtual void setEnabled(
bool enable )
override;
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();
Base class for 3D render view.
Definition of a directional light in a 3D map scene.
Base class for light sources in 3d scenes.
Container class that holds different objects related to shadow rendering.
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.
virtual void setEnabled(bool enable) override
Enable or disable via enable the renderview sub tree.
Qt3DRender::QCamera * lightCamera()
Returns the light camera.
Qt3DRender::QTexture2D * mapTexture() const
Returns shadow depth texture.
Contains configuration for rendering shadows.