diff --git a/compatibility.md b/compatibility.md index a29d941fe5fa6a71e4e2284152c9563bbb41b4b5..cdad029efda6f0b99ef2618e40f4ad0879bf439f 100644 --- a/compatibility.md +++ b/compatibility.md @@ -13,7 +13,7 @@ Auto-generated from live engine sources (`crates/engine/src/eval/`, `crates/engi | **Supported Flow Tools** | **125** (100 2D/Fuse/utility in `crates/engine/src/eval/`, 23 3D scene nodes in `crates/engine/src/scene3d/`, 2 Flow annotations) | | **Modifiers & Animation** | **8** systems (9 Fusion modifier classes + Lua expressions) | | **Paper Clover Comps Accuracy** | **99.0%** (43 suite frames + 24 archive comps) | -| **All Fusion Tools Accuracy** | **96.2%** (60 / 123 tools fuzzed) | +| **All Fusion Tools Accuracy** | **96.9%** (60 / 123 tools fuzzed) | | **Active Corpus (`trees/fusion`) Coverage** | **99.8%** (2,274 / 2,279 nodes across 17 `.comp` files) | | **Archive Corpus (`private/samples`) Coverage** | **99.7%** (64,468 / 64,672 nodes across 324 `.comp` files) | | **HiQ vs Fast Mode** | **`HiQ`**: honors `DepthFull` / generator `Depth` / `ChangeDepth` (`Rgba8Unorm`, clamped `Rgba16Float`, unclamped HDR `Rgba16Float`/`Rgba32Float`), full-res blurs & `XGlow`. **`Fast`**: collapses working targets to `Rgba8Unorm`, downsamples blurs, caps `XGlow` octaves for interactive scrubbing. | @@ -25,19 +25,19 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | | `Background` | ✅ 100.0% | — | -| `FastNoise` | 99.7% | | +| `FastNoise` | ✅ 100.0% | | | `Plasma` | 94.3% | — | | `TextPlus` | 99.4% | Pure-Rust vector engine (no CoreText). | | `Loader` | ✅ 100.0% | — | -| `DaySky` | 88.9% | — | +| `DaySky` | 90.6% | — | | `Fuse.CheckerPieceGenerator` | ✅ 100.0% | — | ## Compositing & Blending | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `Merge` | 96.1% | 3D Z-depth merge (`PerformDepthMerge`) ignored. | -| `Dissolve` | 98.9% | — | +| `Merge` | 99.0% | 3D Z-depth merge (`PerformDepthMerge`) ignored. | +| `Dissolve` | ✅ 100.0% | — | | `Paint` | 98.8%–100.0% | Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented. | | `PolylineStroke` | 99.7%–100.0% | Rendered only inside `Paint` / `PaintMask`. | | `Multistroke` | 98.8%–99.9% | Rendered only inside `Paint` / `PaintMask`. | @@ -47,14 +47,14 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `BrightnessContrast` | 89.5% | — | -| `ColorCorrector` | 89.2% | Histogram/Match/Suppress tabs not implemented. | -| `ColorGain` | 93.5% | — | -| `ColorCurves` | 98.0% | | -| `HueCurves` | 98.0% | — | -| `GamutConvert` | 96.5% | — | +| `BrightnessContrast` | 92.2% | — | +| `ColorCorrector` | 90.9% | Histogram/Match/Suppress tabs not implemented. | +| `ColorGain` | 95.5% | — | +| `ColorCurves` | ✅ 100.0% | | +| `HueCurves` | ✅ 100.0% | — | +| `GamutConvert` | 97.2% | — | | `InvertColor` | ✅ 100.0% | — | -| `ChannelBoolean` | 93.8% | Auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`) unavailable. | +| `ChannelBoolean` | 95.6% | Auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`) unavailable. | | `ChangeDepth` | 99.9% | Collapsed to `Rgba8Unorm` in `Fast` mode. | | `Fuse.Colorize` | 99.5%–99.9% | — | @@ -62,26 +62,26 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `LumaKeyer` | 97.1% | — | -| `UltraKeyer` | 85.5% | — | -| `DeltaKeyer` | 82.5% | — | +| `LumaKeyer` | 96.7% | — | +| `UltraKeyer` | 85.4% | — | +| `DeltaKeyer` | 93.7% | — | | `Fuse.Cryptomatte` | ✅ 100.0% | — | ## Blur, Sharpen & Glow | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `Blur` | 98.9% | Downsampled in `Fast` mode. | -| `Sharpen` | 95.6% | — | -| `Filter` | 97.8% | — | +| `Blur` | 99.0% | Downsampled in `Fast` mode. | +| `Sharpen` | 95.5% | — | +| `Filter` | 98.4% | — | | `VariBlur` | 95.7% | — | | `DirectionalBlur` | 92.2% | — | -| `Glow` | 86.8% | — | -| `SoftGlow` | 90.8% | — | +| `Glow` | 85.3% | — | +| `SoftGlow` | 91.9% | — | | `Fuse.XGlow` | 99.2%–99.8% | Octave-capped in `Fast` mode. | | `ErodeDilate` | ✅ 100.0% | — | -| `RemoveNoise` | 98.0% | — | -| `FilmGrain` | 96.2% | Stochastic per-frame PRNG seed differs from Fusion. | +| `RemoveNoise` | 98.6% | — | +| `FilmGrain` | 96.1% | Stochastic per-frame PRNG seed differs from Fusion. | | `Fuse.Outline` | 99.5%–99.9% | — | | `Fuse.XfChroma` | 99.5%–99.9% | — | | `Fuse.AlphaWeightedNoise` | Visual* | Stochastic per-pixel PRNG seed differs from Lua `math.random`. | @@ -91,17 +91,17 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `Transform` | 95.1% | Motion blur sub-frame accumulation not implemented. | +| `Transform` | 97.3% | Motion blur sub-frame accumulation not implemented. | | `CameraShake` | 98.6% | — | | `CornerPositioner` | 97.2% | — | -| `PerspectivePositioner` | 95.7% | — | +| `PerspectivePositioner` | 95.8% | — | | `GridWarp` | 98.8%–99.6% | Magnet/Subdivision UI helpers not implemented. | -| `DVE` | 92.5% | — | -| `Displace` | 97.4% | — | -| `Vortex` | 91.7% | — | +| `DVE` | 94.3% | — | +| `Displace` | 99.5% | — | +| `Vortex` | 93.8% | — | | `Drip` | 98.5% | — | -| `Dent` | 91.4% | — | -| `Fuse.Duplicate` | 92.6% | — | +| `Dent` | 94.0% | — | +| `Fuse.Duplicate` | 91.9% | — | | `Fuse.KScope` | ✅ 100.0% | — | | `Scale` | 99.8% | — | | `BetterResize` | 99.9% | — | @@ -115,15 +115,15 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | `EllipseMask` | ✅ 100.0% | — | | `RectangleMask` | ✅ 100.0% | — | | `PolylineMask` | 93.9% | — | -| `BitmapMask` | 94.8% | — | -| `WandMask` | 95.7% | | +| `BitmapMask` | 95.7% | — | +| `WandMask` | 95.8% | | | `PaintMask` | 99.6%–99.9% | Non-round brush shapes not implemented. | ## 2D Vector Shapes | Tool | Accuracy | Notes & Fallbacks | | --- | --- | --- | -| `sRender` | 98.2% | — | +| `sRender` | 99.2% | — | | `sNGon` | ✅ 100.0% | — | | `sRectangle` | ✅ 100.0% | — | | `sEllipse` | ✅ 100.0% | — | @@ -193,7 +193,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m | `Tracker` | ✅ 100.0% | Live optical tracking not implemented; evaluates baked `TrackerModifier` paths. | | `MacroOperator` | ✅ 100.0% | Internal subgraph is read-only in interactive Flow. | | `GroupOperator` | ✅ 100.0% | Internal subgraph is read-only in interactive Flow. | -| `Custom` | 95.9% | — | +| `Custom` | 97.8% | — | | `Note` | N/A | Non-rendering Flow annotation. | | `Underlay` | N/A | Non-rendering Flow backdrop. | diff --git a/crates/app/src/inspector/controls.rs b/crates/app/src/inspector/controls.rs index 0f721e741acaf6677b4100e2bf0359e14df1a75c..a00e1d4875d17f485418071051a2061dbeb7cccb 100644 --- a/crates/app/src/inspector/controls.rs +++ b/crates/app/src/inspector/controls.rs @@ -301,6 +301,7 @@ fn color(ui: &mut Ui, cx: &mut Cx, def: &ControlDef) { let mut spec = ui::ColorPicker::new(rgba); spec.width = fill(); spec.label = &def.label; + spec.show_alpha = channels.len() >= 4; let response = ui::color_picker(ui, ("clr", cx.node.0, channels[0].id.as_str()), spec); if let Some(next) = response.changed { let edits: Vec<_> = channels diff --git a/crates/engine/src/eval/mod.rs b/crates/engine/src/eval/mod.rs index 7c1467d71e72954c04719ae7f9e4cbe8c47b9884..32c8436f4514b1b7e16641dc5f7c6d207b35160a 100644 --- a/crates/engine/src/eval/mod.rs +++ b/crates/engine/src/eval/mod.rs @@ -234,6 +234,7 @@ impl Engine { self.media.clear(); self.particles.clear(); self.sprite_cache.clear(); + self.scene3d.clear_shadow_targets(); *self.ram_upload_tex.borrow_mut() = None; io::clear_dims_cache(); } @@ -243,6 +244,7 @@ impl Engine { self.sync_node_cache_budget(); self.cache.bust_all(); self.sprite_cache.clear(); + self.scene3d.clear_shadow_targets(); *self.ram_upload_tex.borrow_mut() = None; } diff --git a/crates/engine/src/eval/output_cache.rs b/crates/engine/src/eval/output_cache.rs index 255177d4982297334d6d32eb52a459c229fb8c66..433cf5730da4f5e043c2ac955bd320d9acc4a0bc 100644 --- a/crates/engine/src/eval/output_cache.rs +++ b/crates/engine/src/eval/output_cache.rs @@ -128,11 +128,13 @@ impl Engine { self.output_cache.total_bytes() } - /// Total resident GPU VRAM bytes across `NodeCache` (live + pooled) and unshared `output_cache` entries. + /// Total resident GPU VRAM bytes across `NodeCache` (live + pooled), unshared `output_cache` + /// entries, and pooled 3D shadow render targets. pub fn vram_bytes(&self) -> u64 { self.cache .total_vram_bytes() .saturating_add(self.output_cache.unshared_bytes()) + .saturating_add(self.scene3d.shadow_vram_bytes()) } pub fn vram_mb(&self) -> f64 { diff --git a/crates/engine/src/text_engine.rs b/crates/engine/src/text_engine.rs index 2e46f9eef5883c59533cc636c0bd686c02bb2d04..2038f4642f20c2e67b8d27b23ff36f8a8c108d02 100644 --- a/crates/engine/src/text_engine.rs +++ b/crates/engine/src/text_engine.rs @@ -61,6 +61,7 @@ fn font_aliases() -> &'static RwLock>> { fn database() -> &'static RwLock { static DB: OnceLock> = OnceLock::new(); DB.get_or_init(|| { + #[cfg_attr(target_arch = "wasm32", allow(unused_mut))] let mut db = fontdb::Database::new(); #[cfg(not(target_arch = "wasm32"))] db.load_system_fonts(); diff --git a/crates/web/index.html b/crates/web/index.html index b50ea8df9f3bdddb197c3aa23376acf464db41b7..1f514b691c0072d291dc5815a05c71eb6d776fd6 100644 --- a/crates/web/index.html +++ b/crates/web/index.html @@ -73,13 +73,14 @@
    - +