EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
M9.4: document layer styles in the render pipeline
Brandon Thomasae28e4e3b5bb
diff --git a/docs/architecture.md b/docs/architecture.mdindex 4c8646b3f..ee0b78766 100644--- a/docs/architecture.md+++ b/docs/architecture.md@@ -61,7 +61,7 @@ text animators and shape contents are groups in the same tree.`Renderer::comp_frame(comp, t)` walks the layers bottom to top. For each visible layer it rendersthe **source** (solid, footage frame, text, shape contents, or a nested comp), applies **masks**,-then **effects** in order, then the **transform** into comp space (with motion blur sub-samples+then **effects** in order, then **layer styles**, then the **transform** into comp space (with motion blur sub-sampleswhen enabled), the **track matte**, and finally **blends** into the accumulator. Adjustment layersapply their effects to the accumulator. Runs of 3D layers are composited per pixel through theactive camera, with lights, shadows and depth of field.@@ -71,6 +71,14 @@ its evaluated inputs, excluding the transform. Static and transform-only layersediting one layer re-renders only that layer. Effects that read the clock directly are declared in`effects::TIME_DEPENDENT`, and a test checks every registered effect against that list.+**Layer styles** (Layer ▸ Layer Styles; `crates/render/src/styles.rs`) render in layer space and+may grow the layer's bounds. Drop Shadow and Outer Glow become separate passes composited below the+layer with their own blend modes; the interior styles, Stroke and Bevel and Emboss are baked into+the layer body. Layer opacity fades the whole stack; Knockout and the R/G/B channel switches apply+at composite time. Styled pixels are cached separately from the layer content, so editing a style+reuses the cached source/masks/effects. Global Light is one setting per comp, mirrored into every+layer's Blending Options and kept in step after each edit.+Half, Third and Quarter resolution render proportionally fewer pixels end to end.## 5. Expressions