Example 55 - glTF KHR_materials_* viewer.
← All examples55_gltf_extensions
Loads real Khronos sample models that use the KHR material extensions (clearcoat, sheen, iridescence, transmission, volume, dispersion) and renders them under IBL, exercising the loader's factor mapping + extension-texture canonicalization. Composes the model package (47_model) with the transmission two-pass capture (54_transmission) so transmissive models refract correctly: A: skybox + model -> linear HDR target, registered via mk_pbr_transmission_capture. B: skybox + model -> backbuffer (transmissive prims refract the capture). ./scripts/build-linux.sh --model --pbr --ibl --target=55_gltf_extensions Bundled with Untitled.glb. Point MK_GLTF_MODELS_DIR at the glTF-Sample-Assets Models directory to cycle the textured models below with N; MK_MODEL_PATH loads a single file directly. Controls: N = next model, V = next material variant, C = clearcoat on/off (sheen on/off on the sheen demos), Y = layered transmission, TAB = debug channel, drag = orbit, scroll = zoom, ESC = quit.

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