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