Skip to content

@modoki/engine / index / Text3D

Variable: Text3D

const Text3D: Trait<{ align: string; anchorX: number; anchorY: number; billboard: boolean; color: number; font: string; fontSize: number; glowColor: number; glowSize: number; glowStrength: number; isVisible: boolean; letterSpacing: number; lineSpacing: number; maxWidth: number; opacity: number; outlineColor: number; outlineOpacity: number; outlineWidth: number; shadowColor: number; shadowOffsetX: number; shadowOffsetY: number; shadowOpacity: number; shadowSoftness: number; text: string; weight: number; }>

In-world SDF text (Three.js layer). Renders a glyph mesh from a baked/dynamic MSDF font atlas — crisp at any scale, with outline/glow/weight effects. Font is a GUID ref to an imported .ttf/.otf (baked via the Font Inspector).

Built with Modoki.