16#ifndef QGSSHADOWSETTINGS_H
17#define QGSSHADOWSETTINGS_H
119 bool showCascadeSplits()
const;
128 void setShowCascadeSplits(
bool show );
131 bool mRenderShadows =
false;
132 int mSelectedDirectionalLight = 0;
133 double mMaximumShadowRenderingDistance = 1500.0;
134 double mShadowBias = 0.00001;
136 bool mShowCascadeSplits =
false;
ShadowQuality
Shadow texture quality.
A container for the context for various read/write operations on objects.
int selectedDirectionalLight() const
Returns the selected direcctional light used to cast shadows.
void setMaximumShadowRenderingDistance(double distance)
Sets the maximum shadow rendering distance accounted for when rendering shadows Objects further away ...
bool renderShadows() const
Returns whether shadow rendering is enabled.
QgsShadowSettings & operator=(QgsShadowSettings const &rhs)
QgsShadowSettings()=default
double maximumShadowRenderingDistance() const
Returns the maximum shadow rendering distance accounted for when rendering shadows Objects further aw...
void setSelectedDirectionalLight(int selectedLight)
Sets which directional light is used to generate shadows.
void setShadowQuality(Qgis::ShadowQuality quality)
Sets the quality of the shadow map texture.
void setRenderShadows(bool enabled)
Sets whether shadow rendering is enabled.
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const
Writes settings to a DOM element.
double shadowBias() const
Returns the shadow bias used to correct the numerical imprecision of shadows (for the depth test) Thi...
Qgis::ShadowQuality shadowQuality() const
Returns the quality of the shadow map texture used to generate the shadows.
void readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads settings from a DOM element.
void setShadowBias(double shadowBias)
Sets the shadow bias value Tweak this to reduce artifacts like self shadowing A reasonable range of v...