API

Interface INodeRenderGraphCustomBlockDescription

Description of a custom block to be used in the node render graph editor

interface INodeRenderGraphCustomBlockDescription {
    description: string;
    factory: (frameGraph: FrameGraph, scene: Scene) => NodeRenderGraphBlock;
    menu: string;
    name: string;
}
Index
description: string

Description (tooltip) of the block.

factory: (frameGraph: FrameGraph, scene: Scene) => NodeRenderGraphBlock

Factory function to create the block.

menu: string

Category of the block. Spaces must be replaced by underscores in the category name.

name: string

Block name. It will be used as the block name in the left menu of the editor. Spaces must be replaced by underscores in the name.