API

Interface BillboardSpriteSystem<TOrientation>

interface BillboardSpriteSystem<
    TOrientation extends BillboardOrientation = BillboardOrientation,
> {
    alphaCutoff: number;
    atlas: SpriteAtlas;
    axis: readonly [number, number, number];
    blendMode: BillboardBlendDescriptor;
    count: number;
    opacity: number;
    order: number;
    orientation: TOrientation;
    shaderParams?: [number, number, number, number];
    visible: boolean;
}

Type Parameters

Index
alphaCutoff: number
axis: readonly [number, number, number]

Normalized world lock axis for axis-locked systems; [0, 0, 0] for facing systems.

count: number
opacity: number
order: number
orientation: TOrientation

How the system's quads orient toward the camera; fixed by the factory that created the system.

shaderParams?: [number, number, number, number]

Per-system custom-shader params (fx.params); set via setBillboardShaderParams. Absent on plain systems (only allocated for custom-shader systems, or lazily by the setter).

visible: boolean