mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-19 05:50:43 +01:00
A UV tile with a lower resolution than its atlas block fills the block's corner, so it has fewer texels per UV unit. Neighbourhood filters (blur, sharpen, warps, bevel, glow, ...) and height-to-normal slopes used the block's texel density for every tile, so such a tile blurred twice as wide and showed twice as steep slopes in UV space. TextureSet::block_scales gives each block's share; the compositor filters each block at its tile's radius, texture export and the CPU path tracer scale the slope by it, and the display packs it into the Extra texture's alpha for the viewport and GPU path tracer shaders (parallax too).