16#ifndef QGSSHADOWSETTINGS_H
17#define QGSSHADOWSETTINGS_H
131 bool showCascadeSplits()
const;
140 void setShowCascadeSplits(
bool show );
143 bool mRenderShadows =
false;
144 QString mLightSourceId;
145 double mMaximumShadowRenderingDistance = 1500.0;
146 double mShadowBias = 0.00001;
148 bool mShowCascadeSplits =
false;
ShadowQuality
Shadow texture quality.
A container for the context for various read/write operations on objects.
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.
void setLightSource(const QString &id)
Sets the id of the light source casting shadows.
QgsShadowSettings & operator=(QgsShadowSettings const &rhs)
QgsShadowSettings()=default
double maximumShadowRenderingDistance() const
Returns the maximum shadow rendering distance accounted for when rendering shadows Objects further aw...
QString lightSource() const
Returns the ID of the light source casting 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...