Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

KHR_texture_transform

Loads Poly Haven’s marble_cliff_02 asset (CC0) — a displaced rock chunk with a tiling PBR material — and showcases the KHR_texture_transform glTF extension support added in blinc_core::TextureTransform + blinc_gpu::mesh_pipeline + blinc_gltf::parse_material.

The asset’s glTF JSON was patched to include "extensions": { "KHR_texture_transform": { "scale": [3, 3] } } on every texture binding, so parse_material reads a 3× tile transform and the shader multiplies UVs accordingly before every sample. Press T to toggle the transform off for a side-by-side comparison — toggling swaps between the parsed Material and a clone with texture_transform: None, exercising the shader’s identity path.

Tip: Some demos are best viewed in a full browser window. Click “Open in a new tab” below for the full experience.

Open in a new tab · View source on GitHub