16#ifndef QGSPOSTPROCESSINGENTITY_H
17#define QGSPOSTPROCESSINGENTITY_H
122 Qt3DRender::QCamera *mMainCamera =
nullptr;
124 int mShadowMapResolution = 512;
126 Qt3DRender::QParameter *mColorTextureParameter =
nullptr;
127 Qt3DRender::QParameter *mDepthTextureParameter =
nullptr;
128 Qt3DRender::QParameter *mShadowMapParameter =
nullptr;
129 Qt3DRender::QParameter *mAmbientOcclusionTextureParameter =
nullptr;
130 Qt3DRender::QParameter *mFarPlaneParameter =
nullptr;
131 Qt3DRender::QParameter *mNearPlaneParameter =
nullptr;
132 Qt3DRender::QParameter *mMainCameraInvViewMatrixParameter =
nullptr;
133 Qt3DRender::QParameter *mMainCameraInvProjMatrixParameter =
nullptr;
135 Qt3DRender::QParameter *mShadowLightIndexParameter =
nullptr;
137 Qt3DRender::QParameter *mCsmMatricesParameter =
nullptr;
138 Qt3DRender::QParameter *mCsmBoundsMatricesParameter =
nullptr;
139 Qt3DRender::QParameter *mMaxShadowDistanceParameter =
nullptr;
141 Qt3DRender::QParameter *mRenderShadowsParameter =
nullptr;
142 Qt3DRender::QParameter *mShadowBiasParameter =
nullptr;
143 Qt3DRender::QParameter *mEyeDomeLightingEnabledParameter =
nullptr;
144 Qt3DRender::QParameter *mEyeDomeLightingStrengthParameter =
nullptr;
145 Qt3DRender::QParameter *mEyeDomeLightingDistanceParameter =
nullptr;
147 Qt3DRender::QParameter *mAmbientOcclusionEnabledParameter =
nullptr;
149 Qt3DRender::QParameter *mBloomTextureParameter =
nullptr;
150 Qt3DRender::QParameter *mBloomEnabledParameter =
nullptr;
151 Qt3DRender::QParameter *mBloomFactorParameter =
nullptr;
153 Qt3DRender::QParameter *mExposureParameter =
nullptr;
154 Qt3DRender::QParameter *mToneMappingParameter =
nullptr;
static constexpr int NUM_SHADOW_CASCADES
Number of shadow map cascades.
Contains the configuration of the lighting "bloom" effect.
Contains the configuration of the scene's color grading settings, such as exposure and tone mapping.
Definition of a directional light in a 3D map scene.
Container class that holds different objects related to frame graphs of 3D scenes.
void updateShadowSettings(const QgsShadowSettings &shadowSettings, const QgsVector3D &lightDir, int size, int globalLightIndex)
Sets shadow rendering to use a directional light.
void setShowCascadingShadowSplits(bool enabled)
Sets whether the splits between cascading shadow map boundaries should be shown.
void setAmbientOcclusionEnabled(bool enabled)
Sets whether screen space ambient occlusion is enabled.
void setShadowRenderingEnabled(bool enabled)
Sets whether shadow rendering is enabled.
void setShadowLightIndex(int index)
Sets the index of the directional light that is casting shadows.
void setBloomEnabled(bool enabled)
Sets whether physically based bloom is enabled.
void setEyeDomeLightingDistance(int distance)
Sets the eye dome lighting distance (contributes to the contrast of the image).
void setShadowBias(float shadowBias)
Sets the shadow bias value.
void setEyeDomeLightingStrength(double strength)
Sets the eye dome lighting strength.
void updateEyeDomeSettings(const Qgs3DMapSettings &settings)
Updates eye dome lighting settings from settings.
void setBloomFactor(float factor)
Sets the bloom factor, which controls the strength of the bloom effect.
void updateBloomSettings(const QgsBloomSettings &settings)
Sets bloom rendering to use a directional light.
void setEyeDomeLightingEnabled(bool enabled)
Sets whether eye dome lighting is enabled.
void updateColorGradingSettings(const QgsColorGradingSettings &settings)
Updates settings for color grading.
QgsPostprocessingEntity(QgsFrameGraph *frameGraph, Qt3DRender::QLayer *layer, QNode *parent=nullptr)
Constructor.
QgsRenderPassQuad(Qt3DRender::QLayer *layer, QNode *parent=nullptr)
Constructor.
Container class that holds different objects related to shadow rendering.
Contains configuration for rendering shadows.
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...