63 Qt3DRender::QCamera *mMainCamera =
nullptr;
65 Qt3DRender::QParameter *mColorTextureParameter =
nullptr;
66 Qt3DRender::QParameter *mDepthTextureParameter =
nullptr;
67 Qt3DRender::QParameter *mShadowMapParameter =
nullptr;
68 Qt3DRender::QParameter *mAmbientOcclusionTextureParameter =
nullptr;
69 Qt3DRender::QParameter *mFarPlaneParameter =
nullptr;
70 Qt3DRender::QParameter *mNearPlaneParameter =
nullptr;
71 Qt3DRender::QParameter *mMainCameraInvViewMatrixParameter =
nullptr;
72 Qt3DRender::QParameter *mMainCameraInvProjMatrixParameter =
nullptr;
74 Qt3DRender::QCamera *mLightCamera =
nullptr;
75 Qt3DRender::QParameter *mLightFarPlaneParameter =
nullptr;
76 Qt3DRender::QParameter *mLightNearPlaneParameter =
nullptr;
78 Qt3DRender::QParameter *mLightPosition =
nullptr;
79 Qt3DRender::QParameter *mLightDirection =
nullptr;
81 Qt3DRender::QParameter *mShadowMinX =
nullptr;
82 Qt3DRender::QParameter *mShadowMaxX =
nullptr;
83 Qt3DRender::QParameter *mShadowMinZ =
nullptr;
84 Qt3DRender::QParameter *mShadowMaxZ =
nullptr;
86 Qt3DRender::QParameter *mRenderShadowsParameter =
nullptr;
87 Qt3DRender::QParameter *mShadowBiasParameter =
nullptr;
88 Qt3DRender::QParameter *mEyeDomeLightingEnabledParameter =
nullptr;
89 Qt3DRender::QParameter *mEyeDomeLightingStrengthParameter =
nullptr;
90 Qt3DRender::QParameter *mEyeDomeLightingDistanceParameter =
nullptr;
92 Qt3DRender::QParameter *mAmbientOcclusionEnabledParameter =
nullptr;
void setupShadowRenderingExtent(float minX, float maxX, float minZ, float maxZ)
Sets the parts of the scene where objects cast shadows.
void setAmbientOcclusionEnabled(bool enabled)
Sets whether screen space ambient occlusion is enabled.
void setShadowRenderingEnabled(bool enabled)
Sets whether shadow rendering 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 setupDirectionalLight(QVector3D position, QVector3D direction)
Sets up a directional light that is used to render shadows.
void setEyeDomeLightingEnabled(bool enabled)
Sets whether eye dome lighting is enabled.