feat(engine): scene-level post-processing effects#62
Merged
Conversation
grain, vignette, pixelate and progressive_blur as pure-Rust RGBA buffer post-processing (deterministic, zero Skia): splitmix64-seeded grain (per-frame animated option), smoothstep vignette, partial-edge block pixelate, variable-radius separable box blur. Applied in declaration order at the single convergence point render_frame_task_scaled (covers encode, studio and stills); slide transitions apply the incoming scene's effects to avoid a pop at the blend boundary; world frames excluded (no single source scene, documented). HTML dialect: <scene effects='[...]'> JSON-in-attribute with dedicated transpile error.
LeadcodeDev
added a commit
that referenced
this pull request
Jul 19, 2026
Follow-up to #62: derivable Default, div_ceil, redundant casts.
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #51 — the last wave-2 workstream.
Goal: grain, vignette, pixelate, progressive blur at scene level — frame-wide effects the per-element FilterFn machinery can't express.
animatedre-seeds per frame), smoothstep vignette, block-average pixelate with partial edges, separable box blur with per-row variable radius (cost documented: ~O(w·h·max_radius), rows abovestartare pure copies)render_frame_task_scaled— the single point where encode, studio and stills converge; slide transitions get the incoming scene's effects (no pop at the blend→normal boundary); world frames excluded and documented (no single source scene)Scene.effects: [PostEffect]additive; unknown effect types rejected at load; HTML dialect<scene effects='[...]'>with a dedicated transpile errorTests: 25 new — 15 unit (identity/determinism/alpha preservation/ordering proof), 5 pipeline (rendered corners darker, serde round-trips), 5 HTML. 329 total, all green.
Verify:
cargo test --workspace→ 329 passed ✓ ·cargo fmt --check✓ · clippy 0 warnings ✓