- Qt 6.10
- Qt Quick 3D
- qt6_add_lightprobe_images
- Qt Quick 3D | Commercial or GPLv3

# qt6_add_lightprobe_images

## Description

`.hdr -> .ktx` baker. Somewhat similar to 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.