Files
craft-libs/crates
dotCooCoo 92fb3fa8ac craft-texture: add per-axis wrapping and MaterialCraft's stored sampling
MaterialCraft's `crates/image` gained per-axis wrap modes and the texture
read of its function graphs. This adds them to craft-texture so the app
can switch to the crate.

- `get_axes`, `sample_axes` and `sample_nearest_axes` take
  `tiling: [bool; 2]`, the wrap mode of `u` and of `v` on their own. With
  equal entries they give the same results as `get`, `sample` and
  `sample_nearest`, which now call them.
- `sample_stored` rounds the bilinear weights to multiples of 1/256 and
  blends by linear interpolation in `f32`. With the image's
  integer-sampling flag on, it clamps each channel to 0..=1 and rounds it
  to a multiple of 1/65535. A channel whose interpolation is not finite
  is taken from the `f64` weighted sum, so finite texels give a finite
  sample.
- `with_integer_sampling` and `integer_sampling` set and read the flag.
  New images start with it off, clones keep it, and `PartialEq` compares
  it.
2026-11-15 10:27:00 -08:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-11-15 11:38:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…