9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
64
65
66
67
68
69
70
71
74
75
76
77
78
79
82
83
84
85
86
87
88
89
92
93
94
95
96
97
98
99
100
103
104
105
106
107
108
109
110
111
114
115
116
117
118
119
120
121
122
123
126
127
128
129
130
131
132
133
134
135
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
174
175
176
177
178
179
180
181
182
185
186
187
188
189
190
191
192
193
194
196float QQuick3DLightmapper::opacityThreshold()
const
198 return m_opacityThreshold;
201float QQuick3DLightmapper::bias()
const
206bool QQuick3DLightmapper::isAdaptiveBiasEnabled()
const
208 return m_adaptiveBias;
211bool QQuick3DLightmapper::isIndirectLightEnabled()
const
213 return m_indirectLight;
216int QQuick3DLightmapper::samples()
const
221int QQuick3DLightmapper::indirectLightWorkgroupSize()
const
223 return m_workgroupSize;
226int QQuick3DLightmapper::bounces()
const
231float QQuick3DLightmapper::indirectLightFactor()
const
233 return m_indirectFactor;
236QUrl QQuick3DLightmapper::source()
const
241void QQuick3DLightmapper::setOpacityThreshold(
float opacity)
243 if (m_opacityThreshold == opacity)
246 m_opacityThreshold = opacity;
247 emit opacityThresholdChanged();
251void QQuick3DLightmapper::setBias(
float bias)
261void QQuick3DLightmapper::setAdaptiveBiasEnabled(
bool enabled)
263 if (m_adaptiveBias == enabled)
266 m_adaptiveBias = enabled;
267 emit adaptiveBiasEnabledChanged();
271void QQuick3DLightmapper::setIndirectLightEnabled(
bool enabled)
273 if (m_indirectLight == enabled)
276 m_indirectLight = enabled;
277 emit indirectLightEnabledChanged();
281void QQuick3DLightmapper::setSamples(
int count)
283 if (m_samples == count)
287 emit samplesChanged();
291void QQuick3DLightmapper::setIndirectLightWorkgroupSize(
int size)
293 if (m_workgroupSize == size)
296 m_workgroupSize = size;
297 emit indirectLightWorkgroupSizeChanged();
301void QQuick3DLightmapper::setBounces(
int count)
303 if (m_bounces == count)
307 emit bouncesChanged();
311void QQuick3DLightmapper::setIndirectLightFactor(
float factor)
313 if (m_indirectFactor == factor)
316 m_indirectFactor = factor;
317 emit indirectLightFactorChanged();
321void QQuick3DLightmapper::setSource(
const QUrl &source)
323 if (m_source == source)
327 emit sourceChanged();
331float QQuick3DLightmapper::denoiseSigma()
const
333 return m_denoiseSigma;
336void QQuick3DLightmapper::setDenoiseSigma(
float newDenoiseSigma)
338 if (qFuzzyCompare(m_denoiseSigma, newDenoiseSigma))
340 m_denoiseSigma = newDenoiseSigma;
341 emit denoiseSigmaChanged();
345float QQuick3DLightmapper::texelsPerUnit()
const
347 return m_texelsPerUnit;
350void QQuick3DLightmapper::setTexelsPerUnit(
float newTexelsPerUnit)
352 if (qFuzzyCompare(m_texelsPerUnit, newTexelsPerUnit))
354 m_texelsPerUnit = newTexelsPerUnit;
355 emit texelsPerUnitChanged();