On this page

qt6_add_lightprobe_images

Description

.hdr -> .ktx baker. Somewhat similar to l{Qt Shader Tools Build System Integration}{qt6_add_shaders()}.

For example, the following autogenerates the lightprobe map at build time and includes it in the executable under :/maps/OpenfootageNET_garage-1024.ktx:

qt6_add_lightprobe_images(principledmaterial "ibl_assets"
    PREFIX
         "/"
    FILES
        "maps/OpenfootageNET_garage-1024.hdr" )

In addition to PREFIX, BASE is available, and works like in qt6_add_resources: Adding BASE "maps" in the above example would lead to getting :/OpenfootageNET_garage-1024.ktx

OUTPUTS works like in qt6_add_shaders, which allows you to specify an alternative name for the resource system for each entry in FILES. For example, adding OUTPUTS "alt/er/native/image.abc" to the above example would generate :/alt/er/native/image.abc

In short, the actual file name in the resource system is either :/PREFIX/FILES[i]-BASE-".hdr"+".ktx" or :/PREFIX/OUTPUTS[i]

See also Pre-generating IBL cubemap.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.