mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-19 02:37:30 +00:00
Expressions are not clamped to the hard range. Padding computed amount.abs().ceil() as u32 + 1, which overflowed (a panic in debug builds) from about 4.3e9 on both the CPU and GPU paths, a NaN Amount filled the layer with NaN, and an infinite one sent infinite coordinates to the samplers' integer pixel positions. turbulent_amount_px, shared by both paths, skips a zero or NaN Amount and bounds the rest to 2^24 px. Values inside the hard range are unchanged. Tests cover both ends of the range with every displacement kind, pinning and Resize Layer (finite, padding within budget), Amounts past it, and CPU/GPU agreement at -10000, 10000 and infinity.