Back to API Reference
Class

ShadowModifier

Applies a shadow effect by appending displaced duplicate glyph geometry behind the face.

Remarks

The shadow is rendered via a duplicate quad offset from the face and tagged with effect UV data. All shadow modifiers render in the same CanvasRenderer as the face (back-first in the index buffer), enabling unlimited stacking with no extra submeshes. All parameters come from the tag/rule parameter string. Format: <shadow=#color>, <shadow=dilate,#color>, or <shadow=dilate,#color,offsetX,offsetY,softness>. Defaults: dilate = 0, color = black 50% (#00000080), offset = (0.1,-0.1), softness = 0.1.
public bool FixedPixelSize{ get; set }

When, dilate, offset, and softness are interpreted in fixed pixels and compensated by the glyph's gradientScale so the shadow has constant on-screen geometry independent of font size. Default — values scale with the glyph SDF padding and font metric factor.

protected override void OnEnable()
public override void PrepareForParallel()
protected override void OnDestroy()
protected override void OnApply()
protected override void OnGlyphEffect()