27 Q_PROPERTY(
float opacityThreshold READ opacityThreshold WRITE setOpacityThreshold NOTIFY opacityThresholdChanged)
28 Q_PROPERTY(
float bias READ bias WRITE setBias NOTIFY biasChanged)
29 Q_PROPERTY(
bool adaptiveBiasEnabled READ isAdaptiveBiasEnabled WRITE setAdaptiveBiasEnabled NOTIFY adaptiveBiasEnabledChanged)
30 Q_PROPERTY(
bool indirectLightEnabled READ isIndirectLightEnabled WRITE setIndirectLightEnabled NOTIFY indirectLightEnabledChanged)
31 Q_PROPERTY(
int samples READ samples WRITE setSamples NOTIFY samplesChanged)
32 Q_PROPERTY(
int indirectLightWorkgroupSize READ indirectLightWorkgroupSize WRITE setIndirectLightWorkgroupSize NOTIFY indirectLightWorkgroupSizeChanged)
33 Q_PROPERTY(
int bounces READ bounces WRITE setBounces NOTIFY bouncesChanged)
34 Q_PROPERTY(
float indirectLightFactor READ indirectLightFactor WRITE setIndirectLightFactor NOTIFY indirectLightFactorChanged)
35 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged FINAL REVISION(6, 10))
36 Q_PROPERTY(
float denoiseSigma READ denoiseSigma WRITE setDenoiseSigma NOTIFY denoiseSigmaChanged FINAL REVISION(6, 10))
37 Q_PROPERTY(
float texelsPerUnit READ texelsPerUnit WRITE setTexelsPerUnit NOTIFY texelsPerUnitChanged FINAL REVISION(6, 10))
39 QML_NAMED_ELEMENT(Lightmapper)
42 float opacityThreshold()
const;
44 bool isAdaptiveBiasEnabled()
const;
45 bool isIndirectLightEnabled()
const;
47 int indirectLightWorkgroupSize()
const;
49 float indirectLightFactor()
const;
50 Q_REVISION(6, 10) QUrl source()
const;
51 Q_REVISION(6, 10)
float denoiseSigma()
const;
52 Q_REVISION(6, 10)
float texelsPerUnit()
const;
55 void setOpacityThreshold(
float opacity);
56 void setBias(
float bias);
57 void setAdaptiveBiasEnabled(
bool enabled);
58 void setIndirectLightEnabled(
bool enabled);
59 void setSamples(
int count);
60 void setIndirectLightWorkgroupSize(
int size);
61 void setBounces(
int count);
62 void setIndirectLightFactor(
float factor);
63 Q_REVISION(6, 10)
void setSource(
const QUrl &source);
64 Q_REVISION(6, 10)
void setDenoiseSigma(
float newDenoiseSigma);
65 Q_REVISION(6, 10)
void setTexelsPerUnit(
float newTexelsPerUnit);
69 void opacityThresholdChanged();
71 void adaptiveBiasEnabledChanged();
72 void indirectLightEnabledChanged();
73 void samplesChanged();
74 void indirectLightWorkgroupSizeChanged();
75 void bouncesChanged();
76 void indirectLightFactorChanged();
77 Q_REVISION(6, 10)
void sourceChanged();
78 Q_REVISION(6, 10)
void denoiseSigmaChanged();
79 Q_REVISION(6, 10)
void texelsPerUnitChanged();
83 float m_opacityThreshold = 0.5f;
84 float m_bias = 0.005f;
85 bool m_adaptiveBias =
true;
86 bool m_indirectLight =
true;
88 int m_workgroupSize = 32;
90 float m_indirectFactor = 1.0f;
91 QUrl m_source = QUrl::fromLocalFile(QStringLiteral(
"lightmaps.bin"));
92 float m_denoiseSigma = 8.f;
93 float m_texelsPerUnit = 1.f;