16#ifndef QGSPOSTPROCESSINGENTITY_H
17#define QGSPOSTPROCESSINGENTITY_H
109 Qt3DRender::QCamera *mMainCamera =
nullptr;
111 int mShadowMapResolution = 512;
113 Qt3DRender::QParameter *mColorTextureParameter =
nullptr;
114 Qt3DRender::QParameter *mDepthTextureParameter =
nullptr;
115 Qt3DRender::QParameter *mShadowMapParameter =
nullptr;
116 Qt3DRender::QParameter *mAmbientOcclusionTextureParameter =
nullptr;
117 Qt3DRender::QParameter *mFarPlaneParameter =
nullptr;
118 Qt3DRender::QParameter *mNearPlaneParameter =
nullptr;
119 Qt3DRender::QParameter *mMainCameraInvViewMatrixParameter =
nullptr;
120 Qt3DRender::QParameter *mMainCameraInvProjMatrixParameter =
nullptr;
122 Qt3DRender::QParameter *mShadowLightIndexParameter =
nullptr;
124 Qt3DRender::QParameter *mCsmMatricesParameter =
nullptr;
125 Qt3DRender::QParameter *mCsmBoundsMatricesParameter =
nullptr;
126 Qt3DRender::QParameter *mMaxShadowDistanceParameter =
nullptr;
128 Qt3DRender::QParameter *mRenderShadowsParameter =
nullptr;
129 Qt3DRender::QParameter *mShadowBiasParameter =
nullptr;
130 Qt3DRender::QParameter *mEyeDomeLightingEnabledParameter =
nullptr;
131 Qt3DRender::QParameter *mEyeDomeLightingStrengthParameter =
nullptr;
132 Qt3DRender::QParameter *mEyeDomeLightingDistanceParameter =
nullptr;
134 Qt3DRender::QParameter *mAmbientOcclusionEnabledParameter =
nullptr;
136 Qt3DRender::QParameter *mBloomTextureParameter =
nullptr;
137 Qt3DRender::QParameter *mBloomEnabledParameter =
nullptr;
138 Qt3DRender::QParameter *mBloomFactorParameter =
nullptr;
140 Qt3DRender::QParameter *mExposureParameter =
nullptr;
141 Qt3DRender::QParameter *mToneMappingParameter =
nullptr;
static constexpr int NUM_SHADOW_CASCADES
Number of shadow map cascades.
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 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 setShadowMapResolution(int resolution)
Sets the shadow texture map resolution.
void setBloomFactor(float factor)
Sets the bloom factor, which controls the strength of the bloom effect.
void setEyeDomeLightingEnabled(bool enabled)
Sets whether eye dome lighting is enabled.
void updateColorGradingSettings(const QgsColorGradingSettings &settings)
Updates settings for color grading.
void updateShadowSettings(const QgsVector3D &lightDirection, float maximumShadowRenderingDistance)
Sets shadow rendering to use a directional light.
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.
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...