API

Interface IEdgesRenderer

Defines the minimum contract an Edges renderer should follow.

interface IEdgesRenderer {
    customInstances: SmartArray<Matrix>;
    isEnabled: boolean;
    dispose(): void;
    isReady(useInstances?: boolean): boolean;
    render(): void;
}

Hierarchy (View Summary)

Implemented by

Index
customInstances: SmartArray<Matrix>

List of instances to render in case the source mesh has instances

isEnabled: boolean

Gets or sets a boolean indicating if the edgesRenderer is active

  • Checks whether or not the edges renderer is ready to render.

    Parameters

    • OptionaluseInstances: boolean

      Defines whether the instanced shader variant should be checked. If omitted, the current rendering state is used.

    Returns boolean

    true if ready, otherwise false.