4#ifndef QSSGSCENEENVIRONMENT_H
5#define QSSGSCENEENVIRONMENT_H
18#include <QtCore/QObject>
19#include <QtCore/QVector>
21#include <QtGui/QColor>
23#include <QtQuick3D/private/qquick3dnode_p.h>
25#include <QtQml/QQmlListProperty>
27#include <QtQuick3D/private/qquick3deffect_p.h>
28#include <QtQuick3D/private/qquick3dlightmapper_p.h>
29#include <QtQuick3D/private/qquick3ddebugsettings_p.h>
30#include <QtQuick3D/private/qquick3dfog_p.h>
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; }
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;
The QColor class provides colors based on RGB, HSV or CMYK values.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
\qmltype Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DObject \inherits QtObject
Q_REVISION(6, 5) bool aoEnabled() const
QQuick3DEnvironmentAAQualityValues
QQuick3DEnvironmentTonemapModes
QQuick3DEnvironmentBackgroundTypes
QQuick3DEnvironmentAAModeValues
\inmodule QtCore\reentrant
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define QML_NAMED_ELEMENT(NAME)
QGraphicsOpacityEffect * effect
the effect attached to this item
QNetworkAccessManager manager
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent