Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtquick3d-effects.qdoc
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \qmlmodule QtQuick3D.Effects \QtVer
6 \title Qt Quick 3D Effects QML Types
7 \brief Provides QML types for the effects included in the Qt Quick 3D
8 effect library.
9
10 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
11 \l[QML]{MultiEffect}, or user-defined effects via the \l
12 Effect type instead.
13
14 \warning All pre-made standalone effects in QtQuick3D.Effects are
15 considered deprecated starting with Qt 6.5. Instead, to get high quality,
16 high performing implementations of post-processing effects performed by the
17 3D renderer, such as depth of field, glow and bloom, lens flare, vignette,
18 color adjustments and grading, fog, or ambient occlusion, use \l
19 ExtendedSceneEnvironment. It offers better performance, better visual
20 quality, better interoperation when combining effects, for instance proper
21 support for tonemapping, and is a better fit for visual design tools such
22 as Qt Design Studio. For 2D effects that do not need to be performed within
23 the 3D scene, such as bluring the content of a \l View3D item, use
24 \l[QML]{MultiEffect} on the \l View3D (or a parent of it).
25 If none of these are suitable, applications can provide their own
26 post-processing effects via the \l Effect type.
27 */
28
29/*!
30 \qmltype AdditiveColorGradient
31 \inqmlmodule QtQuick3D.Effects
32 \brief A gradient with additive color effect.
33
34 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
35
36 \warning All pre-made standalone effects in QtQuick3D.Effects are
37 considered deprecated starting with Qt 6.5. To perform color adjustments
38 and color grading, use \l ExtendedSceneEnvironment instead.
39
40 \image effect_additive_color_gradient.png
41
42 This effect adds a vertical gradient to the whole scene, then additively blends it with all
43 other elements on the layer. Additive blending adds the pixel values of the gradient and the
44 layer, making the result lighter. White areas do not change, and black areas are the same color
45 as the gradient.
46*/
47/*!
48 \qmlproperty vector3d AdditiveColorGradient::bottomColor
49 The color to be used at the bottom of the screen for the gradient.
50 The default is \c {Qt.vector3d(0.0, 0.0, 0.0)} (i.e. black).
51*/
52/*!
53 \qmlproperty vector3d AdditiveColorGradient::topColor
54 The color to be used at the top of the screen for the gradient. The default value
55 is \c {Qt.vector3d(1.0, 1.0, 1.0)} (i.e. white).
56*/
57
58/*!
59 \qmltype Blur
60 \inqmlmodule QtQuick3D.Effects
61 \brief A one-pass blur effect.
62
63 \deprecated [6.5] Use \l[QML]{MultiEffect} instead.
64
65 \warning All pre-made standalone effects in QtQuick3D.Effects are
66 considered deprecated starting with Qt 6.5. To perform blur, use Qt Quick's
67 \l[QML]{MultiEffect} on the \l View3D item (or a parent of
68 it).
69
70 \image effect_blur.png
71
72 This effect provides a simple one-pass blur. It is less expensive than GaussianBlur, but
73 does not give the same quality result.
74*/
75/*!
76 \qmlproperty real Blur::amount
77 The strength of the blur. Sensible values are in the range \c {[0...0.01]}. The default value is \c {0.01}.
78*/
79
80/*!
81 \qmltype BrushStrokes
82 \inqmlmodule QtQuick3D.Effects
83 \brief A brush strokes noise effect.
84
85 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
86 \l[QML]{MultiEffect}, or user-defined effects via the \l
87 Effect type instead.
88
89 \warning All pre-made standalone effects in QtQuick3D.Effects are
90 considered deprecated starting with Qt 6.5. Applications are advised to use
91 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
92 instead, when applicable, or alternatively provide their own custom
93 post-processing effect via the \l Effect type.
94
95 \image effect_brush_strokes.png
96
97 The BrushStrokes effect simulates an artistic painting of the image.
98*/
99/*!
100 \qmlproperty TextureInput BrushStrokes::noiseSample
101 The brush noise texture map. Default is a \l Texture with source \c {"maps/brushnoise.png"}.
102*/
103/*!
104 \qmlproperty real BrushStrokes::brushLength
105 How far to offset the image with the brush. Sensible values are in the range \c {[0...3]}.
106 The default value is \c {1}.
107*/
108/*!
109 \qmlproperty real BrushStrokes::brushSize
110 The scale of the brush. Smaller values yield larger sizes. Sensible values are in the range
111 \c {[10...200]}. The default value is \c {100}.
112*/
113/*!
114 \qmlproperty real BrushStrokes::brushAngle
115 The amount to rotate the brush noise texture, in degrees. The default value is \c {45}.
116*/
117
118/*!
119 \qmltype ChromaticAberration
120 \inqmlmodule QtQuick3D.Effects
121 \brief A chromatic aberration effect.
122
123 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
124 \l[QML]{MultiEffect}, or user-defined effects via the \l
125 Effect type instead.
126
127 \warning All pre-made standalone effects in QtQuick3D.Effects are
128 considered deprecated starting with Qt 6.5. Applications are advised to use
129 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
130 instead, when applicable, or alternatively provide their own custom
131 post-processing effect via the \l Effect type.
132
133 \image effect_chromatic_aberration.png
134
135 The ChromaticAberration effect simulates an imperfection of optical lenses. In real life,
136 chromatic aberration is an optical phenomenon causing color fringes in high contrast
137 areas. These color fringes are caused by different colors refracting at different angles
138 splitting white light into a spectrum. This is called dispersion.
139*/
140/*!
141 \qmlproperty TextureInput ChromaticAberration::maskTexture
142 A grayscale texture to control the position and strength of the effect. The effect is strongest in
143 white areas, and weakest in black areas.
144 The default is a \l Texture with source \c {"maps/white.png"}.
145*/
146/*!
147 \qmlproperty real ChromaticAberration::aberrationAmount
148 The strength of the aberration effect. A negative value inverses the effect. The default value is \c {50}.
149*/
150/*!
151 \qmlproperty real ChromaticAberration::focusDepth
152 The distance to the focus plane. The dispersion scales in relation to the distance from this
153 value. The default value is \c {600}.
154*/
155
156/*!
157 \qmltype ColorMaster
158 \inqmlmodule QtQuick3D.Effects
159 \brief A color adjustment effect.
160
161 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
162
163 \warning All pre-made standalone effects in QtQuick3D.Effects are
164 considered deprecated starting with Qt 6.5. To perform color adjustments,
165 use \l ExtendedSceneEnvironment instead.
166
167 \image effect_color_master.png
168
169 The ColorMaster effect adjusts the color balance and saturation of the scene.
170*/
171/*!
172 \qmlproperty real ColorMaster::redStrength
173 A multiplication factor for the red color channel. The range is \c {[0...2]}. The default value is \c {1}.
174*/
175/*!
176 \qmlproperty real ColorMaster::greenStrength
177 A multiplication factor for the green color channel. The range is \c {[0...2]}. The default value is \c {1.5}.
178*/
179/*!
180 \qmlproperty real ColorMaster::blueStrength
181 A multiplication factor for the blue color channel. The range is \c {[0...2]}. The default value is \c {1}.
182*/
183/*!
184 \qmlproperty real ColorMaster::saturation
185 The strength of all the colors in the scene. The range is \c {[-1...1]}, where \c {-1} is fully desaturated,
186 \c {0} is unmodified, and \c {1} is heavily oversaturated. The default value is \c {0}.
187*/
188
189/*!
190 \qmltype DepthOfFieldHQBlur
191 \inqmlmodule QtQuick3D.Effects
192 \brief A depth-based blur effect.
193
194 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
195
196 \warning All pre-made standalone effects in QtQuick3D.Effects are
197 considered deprecated starting with Qt 6.5. To apply a depth-of-field
198 effect to the scene, use \l ExtendedSceneEnvironment instead.
199
200 \image effect_depth_of_field_hq_blur.png
201
202 The DepthOfFieldHQBlur effect performs a gradient blur on regions of the image based on their
203 deviation from a specified distance from the camera.
204
205 For this effect to work well, you need to adjust the \l {PerspectiveCamera::clipFar}{clipFar}
206 and \l {PerspectiveCamera::clipNear}{clipNear} properties of the camera for the scene to frame
207 the content. You ideally want the largest possible value for
208 \l {PerspectiveCamera::clipNear}{clipNear} and the smallest possible value for
209 \l {PerspectiveCamera::clipFar}{clipFar}. Next, adjust the properties of the effect for the
210 desired result.
211
212 For example, a \l focusDistance of \c 100 and a \l focusRange of \c 20 means that everything
213 that is between 90 and 110 units away from the camera will be entirely in focus, items at a
214 distance of 70-90 and 110-130 units will experience variable blurring, and everything closer
215 than 70 or farther than 130 will be entirely blurred.
216
217 \sa TiltShift
218*/
219/*!
220 \qmlproperty real DepthOfFieldHQBlur::focusDistance
221 The distance from the camera where the content is in perfect focus. The default value is \c {600}.
222*/
223/*!
224 \qmlproperty real DepthOfFieldHQBlur::focusRange
225 The distance around the \l focusDistance where items are fully in focus. The focus then
226 fades away to fully blurred by the same distance on both the near and far sides.
227 The default value is \c {100}.
228*/
229/*!
230 \qmlproperty real DepthOfFieldHQBlur::blurAmount
231 The strength of blur when out of focus. Sensible values are in the range \c {[1...10]}.
232 The default value is \c {4}.
233*/
234
235/*!
236 \qmltype Desaturate
237 \inqmlmodule QtQuick3D.Effects
238 \brief A desaturating effect.
239
240 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
241
242 \warning All pre-made standalone effects in QtQuick3D.Effects are
243 considered deprecated starting with Qt 6.5. To perform color adjustments
244 and color grading, use \l ExtendedSceneEnvironment instead.
245
246 \image effect_desaturate.png
247
248 The Desaturate effect allows decreasing the intensity of all colors in the scene.
249*/
250/*!
251 \qmlproperty real Desaturate::amount
252 The strength of desaturation. The range is \c {[0...1]}, with \c 0 being fully saturated and \c 1
253 being fully grayscale. The default value is \c {0.5}.
254*/
255
256/*!
257 \qmltype DistortionRipple
258 \inqmlmodule QtQuick3D.Effects
259 \brief A ripple distortion effect.
260
261 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
262 \l[QML]{MultiEffect}, or user-defined effects via the \l
263 Effect type instead.
264
265 \warning All pre-made standalone effects in QtQuick3D.Effects are
266 considered deprecated starting with Qt 6.5. Applications are advised to use
267 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
268 instead, when applicable, or alternatively provide their own custom
269 post-processing effect via the \l Effect type.
270
271 \image effect_distortion_ripple.png
272
273 The DistortionRipple effect adds a wavelike distortion of circular ripples around a center point.
274*/
275/*!
276 \qmlproperty real DistortionRipple::radius
277 How far the ripples extend from the center point. Sensible values are in the range \c {[0...100]}.
278 The default value is \c {100}.
279*/
280/*!
281 \qmlproperty real DistortionRipple::distortionWidth
282 The width of a ripple. Sensible values are in the range \c {[2...100]}. The default value is \c {10}.
283*/
284/*!
285 \qmlproperty real DistortionRipple::distortionHeight
286 The distortion amount. Sensible values are in the range \c {[0...100]}. The default value is \c {10}.
287*/
288/*!
289 \qmlproperty real DistortionRipple::distortionPhase
290 The offset of each wave. Animate this property to see the waves move. Sensible values are in
291 the range \c {[0...360]}. The default value is \c {0}.
292*/
293/*!
294 \qmlproperty vector2d DistortionRipple::center
295 The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
296*/
297
298/*!
299 \qmltype DistortionSphere
300 \inqmlmodule QtQuick3D.Effects
301 \brief A sphere distortion effect.
302
303 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
304 \l[QML]{MultiEffect}, or user-defined effects via the \l
305 Effect type instead.
306
307 \warning All pre-made standalone effects in QtQuick3D.Effects are
308 considered deprecated starting with Qt 6.5. Applications are advised to use
309 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
310 instead, when applicable, or alternatively provide their own custom
311 post-processing effect via the \l Effect type.
312
313 \image effect_distortion_sphere.png
314
315 The DistortionSphere effect creates a 3D effect of wrapping the scene around a spherical shape.
316*/
317/*!
318 \qmlproperty real DistortionSphere::radius
319 How far the distortion extends from the center point. The range is \c {[0...1]}. The default value is \c {0.25}.
320*/
321/*!
322 \qmlproperty real DistortionSphere::distortionHeight
323 The distortion amount. The range is \c {[-1...1]}, where positive values distort towards the
324 camera, and negative values distort away from the camera. The default value is \c {0.5}.
325*/
326/*!
327 \qmlproperty vector2d DistortionSphere::center
328 The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
329*/
330
331/*!
332 \qmltype DistortionSpiral
333 \inqmlmodule QtQuick3D.Effects
334 \brief A spiral distortion effect.
335
336 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
337 \l[QML]{MultiEffect}, or user-defined effects via the \l
338 Effect type instead.
339
340 \warning All pre-made standalone effects in QtQuick3D.Effects are
341 considered deprecated starting with Qt 6.5. Applications are advised to use
342 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
343 instead, when applicable, or alternatively provide their own custom
344 post-processing effect via the \l Effect type.
345
346 \image effect_distortion_spiral.png
347
348 The DistortionSpiral effect creates a twirl-shaped distortion.
349*/
350/*!
351 \qmlproperty real DistortionSpiral::radius
352 How far the distortion extends from the center point. The range is \c {[0...1]}. The default value is \c {0.25}.
353*/
354/*!
355 \qmlproperty real DistortionSpiral::distortionStrength
356 The distortion amount. The range is \c {[-10...10]}. The default value is \c {1.0}.
357*/
358/*!
359 \qmlproperty vector2d DistortionSpiral::center
360 The center point of the distortion. The default is \c {Qt.vector2d(0.5, 0.5)}, the center of the scene.
361*/
362
363/*!
364 \qmltype EdgeDetect
365 \inqmlmodule QtQuick3D.Effects
366 \brief An edge highlighting effect.
367
368 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
369 \l[QML]{MultiEffect}, or user-defined effects via the \l
370 Effect type instead.
371
372 \warning All pre-made standalone effects in QtQuick3D.Effects are
373 considered deprecated starting with Qt 6.5. Applications are advised to use
374 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
375 instead, when applicable, or alternatively provide their own custom
376 post-processing effect via the \l Effect type.
377
378 \image effect_edge_detect.png
379
380 The EdgeDetect effect turns smooth, unchanging areas of the scene darker, while areas of the
381 scene with sharp color changes are brightened to highlight the edges.
382*/
383/*!
384 \qmlproperty real EdgeDetect::edgeStrength
385 The strength of the edge highlighting. The range is \c {[0...1]}. The default value is \c {0.5}.
386*/
387
388/*!
389 \qmltype Emboss
390 \inqmlmodule QtQuick3D.Effects
391 \brief An emboss effect.
392
393 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
394 \l[QML]{MultiEffect}, or user-defined effects via the \l
395 Effect type instead.
396
397 \warning All pre-made standalone effects in QtQuick3D.Effects are
398 considered deprecated starting with Qt 6.5. Applications are advised to use
399 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
400 instead, when applicable, or alternatively provide their own custom
401 post-processing effect via the \l Effect type.
402
403 \image effect_emboss.png
404
405 The Emboss effect replaces each pixel either by a highlight or a shadow, depending on light/dark
406 boundaries on the scene. Low contrast areas are replaced by a gray background. The embossed
407 result represents the rate of color change at each location.
408*/
409/*!
410 \qmlproperty real Emboss::amount
411 The strength of the emboss effect. Sensible values are in the range \c {[0...0.01]}. The default value is \c {0.003}.
412*/
413
414/*!
415 \qmltype Flip
416 \inqmlmodule QtQuick3D.Effects
417 \brief A scene flipping effect.
418
419 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
420 \l[QML]{MultiEffect}, or user-defined effects via the \l
421 Effect type instead.
422
423 \warning All pre-made standalone effects in QtQuick3D.Effects are
424 considered deprecated starting with Qt 6.5. Applications are advised to use
425 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
426 instead, when applicable, or alternatively provide their own custom
427 post-processing effect via the \l Effect type.
428
429 \image effect_flip.png
430
431 The Flip effect flips the whole scene either horizontally, vertically, or in both directions.
432*/
433/*!
434 \qmlproperty bool Flip::flipHorizontally
435 This property determines whether the scene is flipped horizontally. The default value is \c {true}.
436*/
437/*!
438 \qmlproperty bool Flip::flipVertically
439 This property determines whether the scene is flipped vertically. The default value is \c {true}.
440*/
441
442/*!
443 \qmltype Fxaa
444 \inqmlmodule QtQuick3D.Effects
445 \brief A fast approximate anti-aliasing effect.
446
447 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
448
449 \warning All pre-made standalone effects in QtQuick3D.Effects are
450 considered deprecated starting with Qt 6.5. To apply FXAA to the scene, use
451 \l ExtendedSceneEnvironment instead.
452
453 \image effect_fxaa.png
454
455 The FXAA effect applies fast approximate anti-aliasing to the scene. FXAA is a high-speed
456 anti-aliasing technique that removes some of the artifacts from the image without impacting
457 performance as heavily as super-sampling would.
458
459 \table
460 \header
461 \li
462 Pros
463 \li
464 Cons
465 \row
466 \li
467 \list
468 \li
469 Easy fix for many aliasing problems.
470 \li
471 Works with moving images.
472 \endlist
473 \li
474 \list
475 \li
476 Can blur and distort fine text details.
477 \li
478 As a screen-space heuristic technique, it can sometimes leave
479 sharp edges that ideally would be anti-aliased.
480 \endlist
481 \endtable
482
483 Fxaa does not have adjustable properties.
484*/
485
486/*!
487 \qmltype GaussianBlur
488 \inqmlmodule QtQuick3D.Effects
489 \brief A two-pass gaussian blur effect.
490
491 \deprecated [6.5] Use \l[QML]{MultiEffect} instead.
492
493 \warning All pre-made standalone effects in QtQuick3D.Effects are
494 considered deprecated starting with Qt 6.5. To perform blur, use Qt Quick's
495 \l[QML]{MultiEffect} on the \l View3D item (or a parent of
496 it).
497
498 \image effect_gaussian_blur.png
499
500 The GaussianBlur effect blurs all objects in the scene evenly. To keep the effect performant,
501 a large blur \l amount will not produce a perfectly smooth blur, but rather a mosaic result.
502*/
503/*!
504 \qmlproperty real GaussianBlur::amount
505 The strength of the blur. Sensible values are in the range \c {[0...10]}. The default value is \c {2}.
506*/
507
508/*!
509 \qmltype HDRBloomTonemap
510 \inqmlmodule QtQuick3D.Effects
511 \brief A bloom with tonemapping effect.
512
513 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
514
515 \warning All pre-made standalone effects in QtQuick3D.Effects are
516 considered deprecated starting with Qt 6.5. To apply glow and bloom to the
517 scene, use \l ExtendedSceneEnvironment instead.
518
519 \image effect_hdr_bloom_tonemap.png
520
521 The HDRBloomTonemap effect provides two features:
522
523 \list
524 \li
525 Adjusting the gamma and exposure of the high-dynamic range rendered
526 content to achieve the image quality you want.
527 \li
528 Applying an adjustable bloom effect to bright areas (like the sun
529 glinting off a car).
530 \endlist
531*/
532/*!
533 \qmlproperty real HDRBloomTonemap::gamma
534 Affects the non-linear curve of the lighting. Higher values increase the exposure of mid tones,
535 lightening the image and decreasing the contrast. A value of \c{1.0} causes no
536 adjustment to the image. Sensible values are in the range \c {[0.1...4]}. The default value is \c {1}.
537*/
538/*!
539 \qmlproperty real HDRBloomTonemap::exposure
540 Sets a linear multiplier on the lighting, brightening, or darkening the image overall. A value of
541 \c{0.0} causes no adjustment to the image. The range is \c {[-9...9]}. The default value is \c {0}.
542*/
543/*!
544 \qmlproperty real HDRBloomTonemap::bloomThreshold
545 Sets the threshold for the bloom effect. Any part of the scene brighter than this value will bloom.
546 A value of \c{1.0} corresponds to white. Lowering this value causes more areas of the rendered scene to bloom.
547 At a value of \c{0.0} everything in the scene blooms. The range is \c {[0...1]}. The default value is \c {1}.
548*/
549/*!
550 \qmlproperty real HDRBloomTonemap::blurFalloff
551 Adjusts the amount of bloom. Lower values result in a stronger bloom effect, and higher values
552 make the effect more subtle. The range is \c {[0...10]}. The default value is \c {0}.
553*/
554/*!
555 \qmlproperty real HDRBloomTonemap::tonemappingLerp
556 Specifies the strength of the overall bloom effect. There is usually no need to adjust this. The range is
557 \c {[0...1]}, with \c 0 being no blur and \c 1 being full bloom. The default value is \c {1}.
558*/
559/*!
560 \qmlproperty real HDRBloomTonemap::channelThreshold
561 Specifies the white point for the image. There is usually no need to adjust this. The range is \c {[0...1]}.
562 The default value is \c {1}.
563*/
564
565/*!
566 \qmltype MotionBlur
567 \inqmlmodule QtQuick3D.Effects
568 \brief A motion blur effect.
569
570 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
571 \l[QML]{MultiEffect}, or user-defined effects via the \l
572 Effect type instead.
573
574 \warning All pre-made standalone effects in QtQuick3D.Effects are
575 considered deprecated starting with Qt 6.5. Applications are advised to use
576 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
577 instead, when applicable, or alternatively provide their own custom
578 post-processing effect via the \l Effect type.
579
580 \image effect_motion_blur.png
581
582 The MotionBlur effect creates a trailing streak for rapidly moving objects in the scene.
583
584 \note The \l {SceneEnvironment::backgroundMode}{background mode} must be
585 \c {SceneEnvironment.Transparent} for MotionBlur to work.
586*/
587/*!
588 \qmlproperty real MotionBlur::fadeAmount
589 How fast the trail fades. The range is \c {[0...1]}, with \c 0 meaning that the object trail persists
590 indefinitely, and \c 1 meaning that the object trail fades out immediately. The default value is \c {0.25}.
591*/
592/*!
593 \qmlproperty real MotionBlur::blurQuality
594 The quality of the blur used to create the trail. Increasing quality will have impact on performance.
595 The range is \c {[0...1]}. The default value is \c {0.25}.
596*/
597
598/*!
599 \qmltype Scatter
600 \inqmlmodule QtQuick3D.Effects
601 \brief A scatter noise effect.
602
603 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
604 \l[QML]{MultiEffect}, or user-defined effects via the \l
605 Effect type instead.
606
607 \warning All pre-made standalone effects in QtQuick3D.Effects are
608 considered deprecated starting with Qt 6.5. Applications are advised to use
609 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
610 instead, when applicable, or alternatively provide their own custom
611 post-processing effect via the \l Effect type.
612
613 \image effect_scatter.png
614
615 Scatters the pixels in a scene, creating a blurry or smeared appearance. Without changing the
616 color of each individual pixel, the Scatter effect redistributes the pixels randomly, but in
617 the same general area as their original positions.
618*/
619/*!
620 \qmlproperty TextureInput Scatter::noiseSample
621 The scatter noise texture map. The default is a \l Texture with source \c {"maps/brushnoise.png"}.
622*/
623/*!
624 \qmlproperty real Scatter::amount
625 Determines how much to scatter. The range is \c {[0...127]}. The default value is \c {10}.
626*/
627/*!
628 \qmlproperty int Scatter::direction
629 The direction in which to scatter the pixels. Set to \c 0 for both horizontal and vertical,
630 \c 1 for horizontal, and \c 2 for vertical. The default value is \c 0.
631*/
632/*!
633 \qmlproperty bool Scatter::randomize
634 Specifies whether the scattering pattern changes for each frame. The default value is \c {true}.
635*/
636
637/*!
638 \qmltype SCurveTonemap
639 \inqmlmodule QtQuick3D.Effects
640 \brief A tonemapping effect.
641
642 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
643
644 \warning All pre-made standalone effects in QtQuick3D.Effects are
645 considered deprecated starting with Qt 6.5. To control tonemapping, use
646 \l ExtendedSceneEnvironment instead.
647
648 \image effect_scurve_tonemap.png
649
650 The SCurveTonemap effect maps the luminance of each pixel in the Scene
651 according to an s-shaped curve:
652
653 \image effect_scurve_graph.png
654
655 The curve has three parts. The \e {toe area} determines the shadows, and
656 is governed by \l toeSlope and \l toeEmphasis. The middle part determines
657 overall contrast, and is changed by \l contrastBoost. The \e {shoulder
658 area} determines the highlights, and is governed by \l shoulderSlope and
659 \l shoulderEmphasis.
660
661*/
662/*!
663 \qmlproperty real SCurveTonemap::shoulderSlope
664 Sets the slope of the \e shoulder part of the s-curve. The shoulder defines
665 where highlights lose contrast.
666
667 The range is \c {[0...3]}. The default value is \c {1}.
668
669 \sa shoulderEmphasis
670*/
671/*!
672 \qmlproperty real SCurveTonemap::shoulderEmphasis
673 Modifies the shape of the \e shoulder part of the s-curve.
674 The range is \c {[-1...1]}. The default value is \c {0}.
675
676 \sa shoulderSlope
677*/
678/*!
679 \qmlproperty real SCurveTonemap::toeSlope
680 Sets the slope of the \e toe part of the s-curve. The toe defines where
681 shadows lose contrast.
682
683 The range is \c {[0...3]}. The default value is \c {1}.
684
685 \sa toeEmphasis
686*/
687/*!
688 \qmlproperty real SCurveTonemap::toeEmphasis
689 Modifies the shape of the \e toe part of the s-curve.
690 The range is \c {[-1...1]}. The default value is \c {0}.
691
692 \sa toeSlope
693*/
694/*!
695 \qmlproperty real SCurveTonemap::contrastBoost
696 Enhances or reduces the overall contrast of the tonemap. This changes
697 the slope of the middle part of the s-curve.
698
699 The range is \c {[-1...2]}. The default value is \c {0}.
700*/
701/*!
702 \qmlproperty real SCurveTonemap::saturationLevel
703 Sets the overall saturation level of the tonemap effect. The range is \c {[0...2]}, with \c 0 being fully
704 grayscale and \c 2 being very oversaturated. The default value is \c {1}.
705*/
706/*!
707 \qmlproperty real SCurveTonemap::gammaValue
708 Sets the gamma value for the tonemap effect. Sensible values are in the range \c {[0.1...8]}. The default value is \c {2.2}.
709*/
710/*!
711 \qmlproperty bool SCurveTonemap::useExposure
712 Makes the effect use \l whitePoint instead of \l exposureValue for luminance calculations.
713 The default value is \c {false}.
714*/
715/*!
716 \qmlproperty real SCurveTonemap::whitePoint
717 Sets the white point of the tonemap. This value is only used if \l useExposure is \c {false}.
718 The range is \c {[0.01...128]}. The default value is \c {1}.
719*/
720/*!
721 \qmlproperty real SCurveTonemap::exposureValue
722 Specifies the exposure for the tonemap effect. This value is only used if \l useExposure is \c {true}.
723 The range is \c {[0.01...16]}. The default value is \c {1}.
724*/
725
726/*!
727 \qmltype TiltShift
728 \inqmlmodule QtQuick3D.Effects
729 \brief A tilt shift blur effect.
730
731 \deprecated [6.5] Use \l ExtendedSceneEnvironment,
732 \l[QML]{MultiEffect}, or user-defined effects via the \l
733 Effect type instead.
734
735 \warning All pre-made standalone effects in QtQuick3D.Effects are
736 considered deprecated starting with Qt 6.5. Applications are advised to use
737 \l ExtendedSceneEnvironment or \l[QML]{MultiEffect}
738 instead, when applicable, or alternatively provide their own custom
739 post-processing effect via the \l Effect type.
740
741 \image effect_tilt_shift.png
742
743 The TiltShift effect simulates depth of field in a simple and performant manner.
744 Instead of blurring based on the depth buffer, it blurs everything outside a horizontal
745 or vertical strip of the scene.
746
747 \sa DepthOfFieldHQBlur
748*/
749/*!
750 \qmlproperty real TiltShift::focusPosition
751 The placement of the focus bar in normalized coordinates. The range is \c {[0...1]}.
752 The default value is \c {0.5}, corresponding to the middle of the scene.
753*/
754/*!
755 \qmlproperty real TiltShift::focusWidth
756 Specifies the width of the in-focus area in normalized coordinates.
757 Objects within this range of \l focusPosition will be in focus.
758 The range is \c {[0...1]}. The default value is \c {0.2}.
759*/
760/*!
761 \qmlproperty real TiltShift::blurAmount
762 Specifies the strength of the blur effect. Values above 4 may cause artifacts.
763 The range is \c {[0...10]}. The default value is \c {4}.
764*/
765/*!
766 \qmlproperty bool TiltShift::isVertical
767 Makes the effect work vertically instead of horizontally. The default value is \c {false}.
768*/
769/*!
770 \qmlproperty bool TiltShift::isInverted
771 Inverts the blur area, so the center is blurred instead. The default value is \c {false}.
772*/
773
774/*!
775 \qmltype Vignette
776 \inqmlmodule QtQuick3D.Effects
777 \brief A vignette effect.
778
779 \deprecated [6.5] Use \l ExtendedSceneEnvironment instead.
780
781 \warning All pre-made standalone effects in QtQuick3D.Effects are
782 considered deprecated starting with Qt 6.5. To apply a vignette effect to
783 the 3D scene, use \l ExtendedSceneEnvironment instead.
784
785 \image effect_vignette.png
786*/
787/*!
788 \qmlproperty real Vignette::vignetteStrength
789 Specifies the strength of the vignetting. The range is \c {[0...15]}. The default value is \c {15}.
790*/
791/*!
792 \qmlproperty real Vignette::vignetteRadius
793 Specifies the size of the vignetting. The range is \c {[0...5]}. The default value is \c {0.35}.
794*/
795/*!
796 \qmlproperty vector3d Vignette::vignetteColor
797 Sets the color to use for the vignetting. The default value is \c {Qt.vector3d(0.5, 0.5, 0.5)}.
798*/