# Generating Skybox and Image-Based Lighting Assets
HDRI images like those available at [Poly Haven](https://polyhaven.com/hdris/skies)
or [HDRI Haven](https://hdri-haven.com) must be preprocessed before they can be
used for skyboxes and image-based lighting in Bevy Engine. Ultimately, three
files are required:
* An `*.hdr` cubemap texture for the skybox
* A `*.ktx2` prefiltered diffuse irradiance cubemap for IBL
* A `*.ktx2` prefiltered specular cubemap for IBL
The HDR cubemap texture currently must be generated using Blender. A helper
asset with instructions is available [here](https://drive.google.com/file/d/1UG_w9a6XfRmZtcfsSwFTDWPF7KnRa56I/view?usp=sharing)
for Blender 3.6.
The prefiltered IBL cubemaps are generated with two CLI tools:
1. [glTF IBL Sampler](https://github.com/KhronosGroup/glTF-IBL-Sampler)
* Git clone with `--recursive` and build using CMake
* Diffuse:
```sh
./path/to/build-output/cli \
-inputPath .hdr \
-outCubeMap