pub enum ShadowCompositeMode {
GlyphOverlay,
GradeUnderlying,
}Expand description
Determines how the compositor applies shadow data onto destination cells.
Shadow geometry, masks, offsets, and progress timing are shared across all compositing modes. The mode controls only the final blending step.
§Backward Compatibility
The default is GlyphOverlay, which preserves the
existing shadow rendering behavior. Switching to
GradeUnderlying changes only the blend step,
not the shadow geometry pipeline.
Variants§
GlyphOverlay
Classic shadow rendering: shadow cells overwrite destination cells with shadow glyphs and colors.
This is the original behavior and remains the default for backward compatibility.
GradeUnderlying
Destination-preserving shadow: leaves destination glyphs and modifiers intact while applying color grading (dim, desaturate, tint) to the shadow region.
Use this mode with ShadowGradeConfig
to control grading intensity. The
ShadowConfig::with_dramatic_grade
builder provides a recommended visible preset.
Implementations§
Source§impl ShadowCompositeMode
impl ShadowCompositeMode
pub fn schema() -> SchemaNode
Trait Implementations§
Source§impl Clone for ShadowCompositeMode
impl Clone for ShadowCompositeMode
Source§fn clone(&self) -> ShadowCompositeMode
fn clone(&self) -> ShadowCompositeMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more