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.
protected override void OnEnable()
public override void PrepareForParallel()
protected override void OnDestroy()
protected override void OnApply()
protected override void OnGlyphEffect()
public bool fixedPixelSize

When true, dilate/offset/softness are in fixed pixels and compensated by gradientScale per glyph.