Field Notes
    Preparing search index...

    Function renderFogStylePreview

    • Paints a fog material swatch using the same deterministic procedural tile and world-space scale as the viewport renderer. One canvas pixel represents one world unit, so callers can size the swatch without changing the material. Procedural allocation failures degrade to the backdrop color.

      Parameters

      • ctx: CanvasRenderingContext2D
      • style: FogStyle
      • width: number
      • height: number

      Returns void