Example 49 - IBL / skybox package (mk_ibl_*, mk_skybox_draw).
← All examples49_ibl
Loads an equirectangular .hdr, bakes the environment (cubemap + SH irradiance + prefiltered specular + BRDF LUT), draws it as a skybox, and lights PBR spheres with it. Requires BOTH packages: ./scripts/build-linux.sh --pbr --ibl --target=49_ibl Layouts (SPACE to cycle, or 1/2/3): 1 SINGLE - one centered mirror sphere (the clean reflection reference) 2 ROW - a row of metallic spheres, roughness left->right 3 GRID - 6x6 metallic (x) by roughness (y) sweep Controls: drag = orbit, scroll = zoom, ESC = quit.

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.
- Number
- 49
- Tags
- Source
examples/49_ibl/main.c
Build and run
./scripts/build-linux.sh release --target=49_ibl --run