Skip to content
modkitv0.2

Example 50 - Post-processing: HDR scene target -> tonemap (mk_post).

← All examples50_post

Demonstrates the explicit HDR pipeline. The IBL scene (skybox + metallic PBR spheres) is rendered into a linear RGBA16F render target with output-linear on, then explicit linear bloom, tone mapping, linear FXAA, and final presentation map it to the backbuffer. The skybox and spheres share one tone curve and the display conversion happens exactly once. Requires all three packages: ./scripts/build-linux.sh --pbr --ibl --post --target=50_post Controls: T = cycle tonemap operator, [ / ] = exposure down/up, B = toggle bloom, N / M = bloom intensity down/up, F = toggle FXAA, drag = orbit, scroll = zoom, ESC = quit.

Example 50 - Post-processing: HDR scene target -> tonemap (mk_post).

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
50
Tags
3dgeometrypbrlightingiblposttexturerender-targetinput
Source
examples/50_post/main.c

Build and run

./scripts/build-linux.sh release --target=50_post --run