4#ifndef QQUICK3DSPECULARGLOSSYMATERIAL_P_H
5#define QQUICK3DSPECULARGLOSSYMATERIAL_P_H
18#include <QtQuick3D/private/qquick3dmaterial_p.h>
19#include <QtQuick3D/private/qquick3dtexture_p.h>
32 Q_PROPERTY(
QColor albedoColor READ albedoColor WRITE setAlbedoColor NOTIFY albedoColorChanged)
35 Q_PROPERTY(
QColor specularColor READ specularColor WRITE setSpecularColor NOTIFY specularColorChanged)
38 Q_PROPERTY(
float glossiness READ glossiness WRITE setGlossiness NOTIFY glossinessChanged)
42 Q_PROPERTY(
QVector3D emissiveFactor READ emissiveFactor WRITE setEmissiveFactor NOTIFY emissiveFactorChanged)
45 Q_PROPERTY(
float opacity READ opacity WRITE setOpacity NOTIFY opacityChanged)
50 Q_PROPERTY(
float normalStrength READ normalStrength WRITE setNormalStrength NOTIFY normalStrengthChanged)
54 Q_PROPERTY(
float occlusionAmount READ occlusionAmount WRITE setOcclusionAmount NOTIFY occlusionAmountChanged)
57 Q_PROPERTY(
float alphaCutoff READ alphaCutoff WRITE setAlphaCutoff NOTIFY alphaCutoffChanged)
59 Q_PROPERTY(
float pointSize READ pointSize WRITE setPointSize NOTIFY pointSizeChanged)
64 Q_PROPERTY(
float heightAmount READ heightAmount WRITE setHeightAmount NOTIFY heightAmountChanged)
65 Q_PROPERTY(
int minHeightMapSamples READ minHeightMapSamples WRITE setMinHeightMapSamples NOTIFY minHeightMapSamplesChanged)
66 Q_PROPERTY(
int maxHeightMapSamples READ maxHeightMapSamples WRITE setMaxHeightMapSamples NOTIFY maxHeightMapSamplesChanged)
68 Q_PROPERTY(
float clearcoatAmount READ clearcoatAmount WRITE setClearcoatAmount NOTIFY clearcoatAmountChanged)
71 clearcoatChannelChanged)
72 Q_PROPERTY(
float clearcoatRoughnessAmount READ clearcoatRoughnessAmount WRITE setClearcoatRoughnessAmount NOTIFY
73 clearcoatRoughnessAmountChanged)
75 setClearcoatRoughnessChannel NOTIFY clearcoatRoughnessChannelChanged)
77 clearcoatRoughnessMapChanged)
79 clearcoatNormalMapChanged)
81 Q_PROPERTY(
float transmissionFactor READ transmissionFactor WRITE setTransmissionFactor NOTIFY transmissionFactorChanged)
85 Q_PROPERTY(
float thicknessFactor READ thicknessFactor WRITE setThicknessFactor NOTIFY thicknessFactorChanged)
88 thicknessChannelChanged)
89 Q_PROPERTY(
float attenuationDistance READ attenuationDistance WRITE setAttenuationDistance NOTIFY attenuationDistanceChanged)
90 Q_PROPERTY(
QColor attenuationColor READ attenuationColor WRITE setAttenuationColor NOTIFY attenuationColorChanged)
92 Q_PROPERTY(
bool vertexColorsEnabled READ vertexColorsEnabled WRITE setVertexColorsEnabled NOTIFY vertexColorsEnabledChanged REVISION(6, 5))
122 Lighting lighting()
const;
123 BlendMode blendMode()
const;
124 QColor albedoColor()
const;
128 float glossiness()
const;
130 float opacity()
const;
133 QColor specularColor()
const;
135 float normalStrength()
const;
137 float occlusionAmount()
const;
138 AlphaMode alphaMode()
const;
139 float alphaCutoff()
const;
140 TextureChannelMapping glossinessChannel()
const;
141 TextureChannelMapping opacityChannel()
const;
142 TextureChannelMapping occlusionChannel()
const;
143 float pointSize()
const;
144 float lineWidth()
const;
146 TextureChannelMapping heightChannel()
const;
147 float heightAmount()
const;
148 int minHeightMapSamples()
const;
149 int maxHeightMapSamples()
const;
151 float clearcoatAmount()
const;
153 TextureChannelMapping clearcoatChannel()
const;
154 float clearcoatRoughnessAmount()
const;
155 TextureChannelMapping clearcoatRoughnessChannel()
const;
159 float transmissionFactor()
const;
161 TextureChannelMapping transmissionChannel()
const;
163 float thicknessFactor()
const;
165 TextureChannelMapping thicknessChannel()
const;
166 float attenuationDistance()
const;
167 QColor attenuationColor()
const;
174 void setAlbedoColor(const
QColor &albedo);
177 void setEmissiveFactor(const
QVector3D &emissiveFactor);
178 void setGlossiness(
float glossiness);
180 void setOpacity(
float opacity);
183 void setSpecularColor(const
QColor &specular);
185 void setNormalStrength(
float normalStrength);
187 void setOcclusionAmount(
float occlusionAmount);
189 void setAlphaCutoff(
float alphaCutoff);
193 void setPointSize(
float size);
197 void setHeightAmount(
float heightAmount);
198 void setMinHeightMapSamples(
int samples);
199 void setMaxHeightMapSamples(
int samples);
201 void setClearcoatAmount(
float newClearcoatAmount);
204 void setClearcoatRoughnessAmount(
float newClearcoatRoughnessAmount);
206 void setClearcoatRoughnessMap(
QQuick3DTexture *newClearcoatRoughnessMap);
209 void setTransmissionFactor(
float newTransmissionFactor);
213 void setThicknessFactor(
float newThicknessFactor);
216 void setAttenuationDistance(
float newAttenuationDistance);
217 void setAttenuationColor(const
QColor &newAttenuationColor);
219 Q_REVISION(6, 5)
void setVertexColorsEnabled(
bool vertexColorsEnabled);
222 void lightingChanged();
223 void blendModeChanged();
224 void albedoColorChanged();
225 void albedoMapChanged();
226 void emissiveMapChanged();
227 void emissiveFactorChanged();
228 void glossinessChanged();
229 void glossinessMapChanged();
230 void opacityChanged();
231 void opacityMapChanged();
232 void normalMapChanged();
233 void specularColorChanged();
234 void specularMapChanged();
235 void normalStrengthChanged();
236 void occlusionMapChanged();
237 void occlusionAmountChanged();
238 void alphaModeChanged();
239 void alphaCutoffChanged();
240 void glossinessChannelChanged();
241 void opacityChannelChanged();
242 void occlusionChannelChanged();
243 void pointSizeChanged();
244 void lineWidthChanged();
245 void heightMapChanged();
246 void heightChannelChanged();
247 void heightAmountChanged();
248 void minHeightMapSamplesChanged();
249 void maxHeightMapSamplesChanged();
251 void clearcoatAmountChanged();
252 void clearcoatMapChanged();
253 void clearcoatChannelChanged();
254 void clearcoatRoughnessAmountChanged();
255 void clearcoatRoughnessChannelChanged();
256 void clearcoatRoughnessMapChanged();
257 void clearcoatNormalMapChanged();
259 void transmissionFactorChanged();
260 void transmissionMapChanged();
261 void transmissionChannelChanged();
263 void thicknessFactorChanged();
264 void thicknessMapChanged();
265 void thicknessChannelChanged();
266 void attenuationDistanceChanged();
267 void attenuationColorChanged();
269 Q_REVISION(6, 5)
void vertexColorsEnabledChanged(
bool vertexColorsEnabled);
273 void markAllDirty() override;
274 void itemChange(ItemChange, const ItemChangeData &) override;
278 LightingModeDirty = 0x00000001,
279 BlendModeDirty = 0x00000002,
280 AlbedoDirty = 0x00000004,
281 EmissiveDirty = 0x00000008,
282 SpecularDirty = 0x00000010,
283 OpacityDirty = 0x00000020,
284 NormalDirty = 0x00000040,
285 GlossyDirty = 0x00000080,
286 OcclusionDirty = 0x00000100,
287 AlphaModeDirty = 0x00000200,
288 PointSizeDirty = 0x00000400,
289 LineWidthDirty = 0x00000800,
290 HeightDirty = 0x00001000,
291 ClearcoatDirty = 0x00002000,
292 TransmissionDirty = 0x00004000,
293 VolumeDirty = 0x00008000,
294 VertexColorsDirty = 0x00001000
299 Lighting m_lighting = FragmentLighting;
300 BlendMode m_blendMode = SourceOver;
301 AlphaMode m_alphaMode =
Default;
311 float m_glossiness = 1.0f;
312 float m_opacity = 1.0f;
314 float m_normalStrength = 1.0f;
315 float m_occlusionAmount = 1.0f;
316 float m_alphaCutoff = 0.5f;
320 float m_pointSize = 1.0f;
321 float m_lineWidth = 1.0f;
324 float m_heightAmount = 0.0f;
325 int m_minHeightMapSamples = 8;
326 int m_maxHeightMapSamples = 32;
327 float m_clearcoatAmount = 0.0f;
330 float m_clearcoatRoughnessAmount = 0.0f;
334 float m_transmissionFactor = 0.0f;
337 float m_thicknessFactor = 0.0f;
340 float m_attenuationDistance = std::numeric_limits<float>::infinity();
342 bool m_vertexColorsEnabled =
true;
344 quint32 m_dirtyAttributes = 0xffffffff;
345 void markDirty(DirtyType
type);
IOBluetoothL2CAPChannel * channel
The QColor class provides colors based on RGB, HSV or CMYK values.
\qmltype Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DObject \inherits QtObject
Q_REVISION(6, 5) bool vertexColorsEnabled() const
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static QT_BEGIN_NAMESPACE const uint Default
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent