mwg API
    Preparing search index...

    Interface BeamTextureOptions

    interface BeamTextureOptions {
        anchor?: number;
        source: Texture;
        stretch?: boolean;
    }
    Index
    anchor?: number

    Where the strip sits across the beam's thickness: 0 keeps its top edge on the line, 0.5 centres it (the default here), 1 hangs it below. The bare-texture form keeps its own old top-edge placement.

    source: Texture

    the strip's texture

    stretch?: boolean

    Stretch the texture once along the whole span instead of tiling it - a ray whose art IS the beam, scale.x = length / texture.width - for art that repeats badly. Default false: the strip tiles, as the bare-texture form always has.