dacha
    Preparing search index...

    Class Renderer

    Draws the actors that have a view component: Sprite, Shape, BitmapText, Mesh or PixiView.

    The system registers RendererAPI in world.systemApi.

    Options:

    • windowNodeId: the id of the element the renderer adds its canvas to.
    • backgroundColor: the window background color.
    • filterEffects: post-processing effects for the whole screen.

    The global option sorting sets the sorting layers and the draw order, see Sorting. Pass your shaders and filter effects in resources under Renderer.systemName, see RendererResources.

    The renderer needs CameraSystem before it in the systems list. Put it after every system that moves actors or changes their view components.

    Hierarchy (View Summary)

    Index
    systemName: string

    The name the configuration uses for the system.

    DefineSystem sets it, so a game usually does not assign it.