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-cmake-macros.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2025 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtquick3d-cmake-qt6-add-lightprobe-images.html
6
\ingroup cmake-commands-qtquick3d
7
8
\title qt6_add_lightprobe_images
9
\keyword qt6_add_lightprobe_images
10
11
\section1 Description
12
13
\c {.hdr -> .ktx} baker. Somewhat similar to
14
\l l{Qt Shader Tools Build System Integration}{qt6_add_shaders()}.
15
16
For example, the following autogenerates the lightprobe map at build time and
17
includes it in the executable under \c {:/maps/OpenfootageNET_garage-1024.ktx}:
18
19
\badcode
20
qt6_add_lightprobe_images(principledmaterial "ibl_assets"
21
PREFIX
22
"/"
23
FILES
24
"maps/OpenfootageNET_garage-1024.hdr" )
25
\endcode
26
27
In addition to \c PREFIX, \c BASE is available, and works like in
28
\c {qt6_add_resources}:
29
Adding \c {BASE "maps"} in the above example would lead to getting
30
\c {:/OpenfootageNET_garage-1024.ktx}
31
32
\c OUTPUTS works like in \c qt6_add_shaders, which allows you to specify an
33
alternative name for the resource system for each entry in \c FILES. For
34
example, adding \c {OUTPUTS "alt/er/native/image.abc"} to the above example
35
would generate \c {:/alt/er/native/image.abc}
36
37
In short, the actual file name in the resource system is either
38
\c {:/PREFIX/FILES[i]-BASE-".hdr"+".ktx"} or \c {:/PREFIX/OUTPUTS[i]}
39
40
\sa {Pre-generating IBL cubemap}
41
*/
qtquick3d
src
quick3d
doc
src
qtquick3d-cmake-macros.qdoc
Generated on
for Qt by
1.14.0