42 Q_PROPERTY(
bool temporalAAEnabled READ temporalAAEnabled WRITE setTemporalAAEnabled NOTIFY temporalAAEnabledChanged)
43 Q_PROPERTY(
float temporalAAStrength READ temporalAAStrength WRITE setTemporalAAStrength NOTIFY temporalAAStrengthChanged)
45 Q_PROPERTY(
QColor clearColor READ clearColor WRITE setClearColor NOTIFY clearColorChanged)
46 Q_PROPERTY(
bool depthTestEnabled READ depthTestEnabled WRITE setDepthTestEnabled NOTIFY depthTestEnabledChanged)
47 Q_PROPERTY(
bool depthPrePassEnabled READ depthPrePassEnabled WRITE setDepthPrePassEnabled NOTIFY depthPrePassEnabledChanged)
49 Q_PROPERTY(
float aoStrength READ aoStrength WRITE setAoStrength NOTIFY aoStrengthChanged)
50 Q_PROPERTY(
float aoDistance READ aoDistance WRITE setAoDistance NOTIFY aoDistanceChanged)
51 Q_PROPERTY(
float aoSoftness READ aoSoftness WRITE setAoSoftness NOTIFY aoSoftnessChanged)
52 Q_PROPERTY(
bool aoDither READ aoDither WRITE setAoDither NOTIFY aoDitherChanged)
53 Q_PROPERTY(
int aoSampleRate READ aoSampleRate WRITE setAoSampleRate NOTIFY aoSampleRateChanged)
54 Q_PROPERTY(
float aoBias READ aoBias WRITE setAoBias NOTIFY aoBiasChanged)
55 Q_PROPERTY(
bool aoEnabled READ aoEnabled WRITE setAoEnabled NOTIFY aoEnabledChanged REVISION(6, 5))
58 Q_PROPERTY(
float probeExposure READ probeExposure WRITE setProbeExposure NOTIFY probeExposureChanged)
59 Q_PROPERTY(
float probeHorizon READ probeHorizon WRITE setProbeHorizon NOTIFY probeHorizonChanged)
60 Q_PROPERTY(
QVector3D probeOrientation READ probeOrientation WRITE setProbeOrientation NOTIFY probeOrientationChanged)
68 Q_PROPERTY(
float skyboxBlurAmount READ skyboxBlurAmount WRITE setSkyboxBlurAmount NOTIFY skyboxBlurAmountChanged REVISION(6, 4))
69 Q_PROPERTY(
bool specularAAEnabled READ specularAAEnabled WRITE setSpecularAAEnabled NOTIFY specularAAEnabledChanged REVISION(6, 4))
74 Q_PROPERTY(
QRect scissorRect READ scissorRect WRITE setScissorRect NOTIFY scissorRectChanged REVISION(6, 5))
88 Q_ENUM(QQuick3DEnvironmentAAModeValues)
95 Q_ENUM(QQuick3DEnvironmentAAQualityValues)
104 Q_ENUM(QQuick3DEnvironmentBackgroundTypes)
113 Q_ENUM(QQuick3DEnvironmentTonemapModes)
118 QQuick3DEnvironmentAAModeValues antialiasingMode()
const;
119 QQuick3DEnvironmentAAQualityValues antialiasingQuality()
const;
120 bool temporalAAEnabled()
const;
121 float temporalAAStrength()
const;
123 QQuick3DEnvironmentBackgroundTypes backgroundMode()
const;
124 QColor clearColor()
const;
126 float aoStrength()
const;
127 float aoDistance()
const;
128 float aoSoftness()
const;
129 bool aoDither()
const;
130 int aoSampleRate()
const;
131 float aoBias()
const;
136 float probeExposure() const;
137 float probeHorizon() const;
140 bool depthTestEnabled() const;
141 bool depthPrePassEnabled() const;
157 bool gridEnabled() const;
158 void setGridEnabled(
bool newGridEnabled);
160 float gridScale() const;
161 void setGridScale(
float newGridScale);
163 uint gridFlags() const;
164 void setGridFlags(
uint newGridFlags);
169 void setTemporalAAEnabled(
bool temporalAAEnabled);
170 void setTemporalAAStrength(
float strength);
173 void setClearColor(const
QColor &clearColor);
175 void setAoStrength(
float aoStrength);
176 void setAoDistance(
float aoDistance);
177 void setAoSoftness(
float aoSoftness);
178 void setAoDither(
bool aoDither);
179 void setAoSampleRate(
int aoSampleRate);
180 void setAoBias(
float aoBias);
183 void setProbeExposure(
float probeExposure);
184 void setProbeHorizon(
float probeHorizon);
185 void setProbeOrientation(const
QVector3D &orientation);
187 void setDepthTestEnabled(
bool depthTestEnabled);
188 void setDepthPrePassEnabled(
bool depthPrePassEnabled);
192 Q_REVISION(6, 4)
void setSkyboxBlurAmount(
float newSkyboxBlurAmount);
204 void antialiasingModeChanged();
205 void antialiasingQualityChanged();
206 void temporalAAEnabledChanged();
207 void temporalAAStrengthChanged();
209 void backgroundModeChanged();
210 void clearColorChanged();
212 void aoStrengthChanged();
213 void aoDistanceChanged();
214 void aoSoftnessChanged();
215 void aoDitherChanged();
216 void aoSampleRateChanged();
217 void aoBiasChanged();
220 void lightProbeChanged();
221 void probeExposureChanged();
222 void probeHorizonChanged();
223 void probeOrientationChanged();
225 void depthTestEnabledChanged();
226 void depthPrePassEnabledChanged();
228 void tonemapModeChanged();
242 void itemChange(ItemChange, const ItemChangeData &) override;
244 virtual
bool useBuiltinTonemapper() const;
249 static constexpr
float defaultAoDistance() {
return 5.0f; }
251 QVector<QQuick3DEffect *> m_effects;
255 static qsizetype qmlEffectsCount(QQmlListProperty<QQuick3DEffect> *
list);
256 static void qmlClearEffects(QQmlListProperty<QQuick3DEffect> *
list);
260 QQuick3DEnvironmentAAModeValues m_antialiasingMode = NoAA;
261 QQuick3DEnvironmentAAQualityValues m_antialiasingQuality = High;
262 bool m_temporalAAEnabled =
false;
263 float m_temporalAAStrength = 0.3f;
264 bool m_specularAAEnabled =
false;
266 QQuick3DEnvironmentBackgroundTypes m_backgroundMode =
Transparent;
269 float m_aoStrength = 0.0f;
270 float m_aoDistance = defaultAoDistance();
271 float m_aoSoftness = 50.0f;
272 float m_aoBias = 0.0f;
273 int m_aoSampleRate = 2;
274 bool m_aoDither =
false;
275 bool m_aoEnabled =
false;
277 float m_probeExposure = 1.0f;
278 float m_probeHorizon = 0.0f;
281 bool m_depthTestEnabled =
true;
282 bool m_depthPrePassEnabled =
false;
283 QQuick3DEnvironmentTonemapModes m_tonemapMode = QQuick3DEnvironmentTonemapModes::TonemapModeLinear;
284 float m_skyboxBlurAmount = 0.0f;
291 bool m_gridEnabled =
false;
292 uint m_gridFlags = 0;
293 float m_gridScale = 1.0f;