mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-30 10:03:56 +01:00
textureSet.channel.format {channel, format} stores a channel in sRGB8, L8, RGB8, L16, RGB16, L16F,
RGB16F, L32F or RGB32F, as one undo step. The composite keeps 256 steps for 8-bit formats (sRGB8
spaced for gamma) and one grey value for L formats; 16-bit and float formats keep the tiles' 16 bits,
and the command says so for floats. Layer data keeps its precision, so a wider format brings back
what was painted.
Until a format is set, every channel keeps the 16 bits TextureCraft always stored (shown as RGB16 /
L16), so new and saved projects render as before; setting one channel's format keeps the others at
16 bits.