Commit Graph
25 Commits
Author SHA1 Message Date
chasse20 25ddf9ef5a Retain the sampling depth of bound integer bitmaps 2026-11-19 04:35:46 -05:00
chasse20 11ecfe02d5 Preserve PNG sample depth when filtering non-power-of-two graph inputs 2026-11-19 02:50:20 -05:00
chasse20 2cd58b6f11 Filter non-power-of-two external float images at their stored precision 2026-11-19 02:32:04 -05:00
chasse20 11e4774f1e Apply physical pixel size to one-sided emboss lighting 2026-11-19 01:53:15 -05:00
chasse20 d98d3fc921 Preserve half blend precision across output size expressions 2026-11-18 21:21:15 -05:00
chasse20 00d8a9d188 Honor distance output channels, axis wrapping and strict source cutoffs 2026-11-18 19:09:42 -05:00
chasse20 2e883315b9 Preserve signed size exponents through one-texel reductions 2026-11-18 16:35:19 -05:00
chasse20 83516a4bfa Normalize integer Levels endpoints and preserve scalar channel alpha 2026-11-18 12:54:05 -05:00
chasse20 0407d8c5bf Sample value functions at full texture coordinate precision 2026-11-18 07:42:32 -05:00
chasse20 1f771f5989 Sample wired graph textures at their original resolution 2026-11-18 06:05:41 -05:00
chasse20 df9c43dda4 Filter bound inputs at their source storage precision 2026-11-18 05:35:30 -05:00
chasse20 a95edb51d7 Match stored-precision filtering and transform matte edges 2026-11-18 04:36:16 -05:00
chasse20 3e0d3a3b64 Preserve root graph sizes and per-port instance precision 2026-11-18 04:27:51 -05:00
dotCooCoo 2ee4537c65 Merge main into feat/image-craft-texture 2026-11-16 16:45:08 -08:00
chasse20 04d1b3889f Fix atomic filters, channel selection and backgrounds 2026-11-16 03:32:03 -05:00
dotCooCoo bee8c3feb8 Merge main into feat/image-craft-texture
main's per-axis wrapping, stored sampling and integer-sampling flag now
come from craft-texture (storytold/craft-libs#1709). Every craft-libs
dependency is pinned to that pull request's head, 92fb3fa8.
2026-11-15 10:48:09 -08:00
dotCooCoo 9744afda83 Image: use craft-texture's image planes and sampling
Replace the local materialcraft-image crate with craft-texture from
storytold/craft-libs (storytold/craft-libs#1216), with its parallel
feature on. engine re-exports it as `engine::image`. Every craft-libs
dependency moves to the same revision, 29fb8f8e.

The image fields are private in craft-texture. Callers read them through
width(), height(), kind() and data(), and decoders, the pixel processor
and the pattern raster build images with Image::from_data, which rejects
an empty size or a buffer of the wrong length with an error.

This changes some pixels at the edges of the float range:
- a repeated sample far from the origin keeps its phase instead of
  stopping at a clamped texel position
- generate_uv spreads its coordinates over the clamped size
- bilinear samples and box downsampling of values near f32::MAX stay
  finite
- linear_to_srgb(NaN) returns NaN instead of -0.055

The box blur's running sum in nodes/src/ops.rs now uses f64 as well,
so a blur of values near f32::MAX no longer overflows.

#225 fixes the generate_uv fault in the local crate; craft-texture
includes that fix.
2026-11-14 15:59:55 -08:00
chasse20 1a7225c8c2 Auto: Reuse SBS parsing and fix stale preview cache failures
Integrate main's read limits and preserve the font, evaluator, converter,
and measured preview repairs. Complete the scoped type, comment, and
spacing cleanup.

Reuse one validated XML document for library layout and graph reads.
Associate cache maintenance completion with its submitted revision so
old failures cannot consume new settings or clear requests.
2026-11-14 22:52:26 +00:00
chasse20 2318d25a3a Improve clean-room SBS evaluation parity 2026-11-13 11:46:15 -05:00
chasse20 3432f14b53 Fix SBS resource resolution and shared graph rendering
Use the supplied attributed resources, replace legacy surface and font references on import, and keep resource credits outside SBS files.

Correct function evaluation state, FX-Map roughness and regions, primitive rendering, gradient handling, and scalar luminosity validation. Add regression coverage for resource import and shared rendering behavior.
2026-11-12 18:46:34 -05:00
chasse20 85e0bf9247 Add parameter-owned function graphs 2026-11-10 04:07:54 -05:00
chasse20 a0032d6ac2 Add SBS function library and Explorer graph editing 2026-11-08 17:25:08 -05:00
chasse20 570bc528a6 Add linked graph instances 2026-11-07 18:23:51 -05:00
chasse20 2adbdf4aab Merge main while preserving native graph architecture 2026-11-06 00:58:56 -05:00
chasse20 fe88ee5c4d Unify graph editors and optimize material workflows 2026-11-06 00:13:10 -05:00