mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
A new kind with the reference's controls: Distance (1 reaches about half a UV tile in), Smoothness, Balance, Contrast and Invert. Each covered texel's exact Euclidean distance to the nearest uncovered texel of its UV tile (the tile's edge counting as a border) sets a linear gradient; Smoothness blurs it with the empty space around the islands, softening the borders towards black; balance and contrast act like the global controls. The gradient is built once per UV layout and setting and cached. On the test gun it matches the reference within 0.002 to 0.011 mean error on every captured setting. Commands only; the picker leaves it out until its panel is designed.