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
44
45
46
47
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
68
69
70
71
72
73
74
75
78
79
80
81
82
83
86
87
88
89
90
91
92
93
96
97
98
99
100
101
102
103
104
107
108
109
110
111
112
113
114
115
118
119
120
121
122
123
124
125
126
127
130
131
132
133
134
135
136
137
138
139
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
172
173
174
175
178
179
180
181
182
183
184
185
186
189
190
191
192
193
194
195
196
197
198
200float QQuick3DLightmapper::opacityThreshold()
const
202 return m_opacityThreshold;
205float QQuick3DLightmapper::bias()
const
210bool QQuick3DLightmapper::isAdaptiveBiasEnabled()
const
212 return m_adaptiveBias;
215bool QQuick3DLightmapper::isIndirectLightEnabled()
const
217 return m_indirectLight;
220int QQuick3DLightmapper::samples()
const
225int QQuick3DLightmapper::indirectLightWorkgroupSize()
const
227 return m_workgroupSize;
230int QQuick3DLightmapper::bounces()
const
235float QQuick3DLightmapper::indirectLightFactor()
const
237 return m_indirectFactor;
240QUrl QQuick3DLightmapper::source()
const
245void QQuick3DLightmapper::setOpacityThreshold(
float opacity)
247 if (m_opacityThreshold == opacity)
250 m_opacityThreshold = opacity;
251 emit opacityThresholdChanged();
255void QQuick3DLightmapper::setBias(
float bias)
265void QQuick3DLightmapper::setAdaptiveBiasEnabled(
bool enabled)
267 if (m_adaptiveBias == enabled)
270 m_adaptiveBias = enabled;
271 emit adaptiveBiasEnabledChanged();
275void QQuick3DLightmapper::setIndirectLightEnabled(
bool enabled)
277 if (m_indirectLight == enabled)
280 m_indirectLight = enabled;
281 emit indirectLightEnabledChanged();
285void QQuick3DLightmapper::setSamples(
int count)
287 if (m_samples == count)
291 emit samplesChanged();
295void QQuick3DLightmapper::setIndirectLightWorkgroupSize(
int size)
297 if (m_workgroupSize == size)
300 m_workgroupSize = size;
301 emit indirectLightWorkgroupSizeChanged();
305void QQuick3DLightmapper::setBounces(
int count)
307 if (m_bounces == count)
311 emit bouncesChanged();
315void QQuick3DLightmapper::setIndirectLightFactor(
float factor)
317 if (m_indirectFactor == factor)
320 m_indirectFactor = factor;
321 emit indirectLightFactorChanged();
325void QQuick3DLightmapper::setSource(
const QUrl &source)
327 if (m_source == source)
331 emit sourceChanged();
335float QQuick3DLightmapper::denoiseSigma()
const
337 return m_denoiseSigma;
340void QQuick3DLightmapper::setDenoiseSigma(
float newDenoiseSigma)
342 if (qFuzzyCompare(m_denoiseSigma, newDenoiseSigma))
344 m_denoiseSigma = newDenoiseSigma;
345 emit denoiseSigmaChanged();
349float QQuick3DLightmapper::texelsPerUnit()
const
351 return m_texelsPerUnit;
354void QQuick3DLightmapper::setTexelsPerUnit(
float newTexelsPerUnit)
356 if (qFuzzyCompare(m_texelsPerUnit, newTexelsPerUnit))
358 m_texelsPerUnit = newTexelsPerUnit;
359 emit texelsPerUnitChanged();
Combined button and popup list for selecting options.