← All resources

Runtime Mipmap Generation

Auto-discovered

Blog Advanced

Ignacio Castaño

Visit resource ↗

Description

Runtime Mipmap Generation is a February 2026 blog post by Ignacio Castano on generating mipmaps at runtime in spark.js instead of shipping precomputed chains with compressed textures.

It covers bandwidth savings from omitting transmitted mips, linear-space sRGB filtering in WebGPU, a Firefox fragment-shader workaround, Magic Kernel Sharp versus box filters, shared-memory tiled convolutions, alpha-weighted filtering, and coverage-preserving alpha scales for alpha-tested foliage. Notes also touch Toksvig-style normal variance and polyphase filters for non-power-of-two sizes.

It is for intermediate to advanced graphics and WebGPU developers building texture pipelines or comparing runtime mip quality to three.js and offline tools.

The post is free on ludicon.com with WebGPU sketches, visual comparisons, and spark.js encoding API notes.

It is useful when runtime compression already runs on device and you want higher-quality mips without offline mip transmission overhead.