API

Variable FrameGraphUtilsConst

FrameGraphUtils: {
    CreateUtilityLayerRenderer: (
        frameFraph: FrameGraph,
        handleEvents?: boolean,
    ) => UtilityLayerRenderer;
    FindMainCamera: (frameGraph: FrameGraph) => Nullable<Camera>;
    FindMainObjectRenderer: (
        frameGraph: FrameGraph,
    ) => Nullable<FrameGraphObjectRendererTask>;
} = ...

Class used to host frame graph specific utilities

Type Declaration

  • CreateUtilityLayerRenderer: (frameFraph: FrameGraph, handleEvents?: boolean) => UtilityLayerRenderer

    Creates a utility layer renderer compatible with the given frame graph.

    The frame graph to create the utility layer renderer for

    True if the utility layer renderer should handle events, false otherwise

    The created utility layer renderer

  • FindMainCamera: (frameGraph: FrameGraph) => Nullable<Camera>

    Looks for the main camera used by the frame graph. We assume that the camera used by the the last rendering task in the graph is the main camera.

    The frame graph to search in

    The main camera used by the frame graph, or null if not found

  • FindMainObjectRenderer: (frameGraph: FrameGraph) => Nullable<FrameGraphObjectRendererTask>

    Looks for the main object renderer task in the frame graph. We assume that the last object renderer task that has an object list with meshes is the main object renderer.

    The frame graph to search in

    The main object renderer of the frame graph, or null if not found