phaser - v4.0.0-rc.4
    Preparing search index...

    A RenderNode that renders a quad using a shader program. This is used for custom rendering effects and post-processing.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _texturerProxy: object

    An object which acts as a proxy for textures in the transformer.

    indexBuffer: WebGLBufferWrapper

    The index buffer defining vertex order.

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    programManager: ProgramManager

    The program manager used to create and manage shader programs. This contains shader variants.

    renderer: WebGLRenderer

    The WebGLRenderer in use.

    setUniform: Function

    The uniform callback used to set uniforms on the shader program.

    transformerNode: TransformerImage

    The transformer node used to transform the quad for rendering.

    vertexBufferLayout: WebGLVertexBufferLayoutWrapper

    The vertex buffer layout for this RenderNode.

    This consists of 4 bytes, 0-3, forming corners of a quad instance.

    Methods

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Run the RenderNode. This is a stub method that should be overridden by the specific implementation.

      This method may be wrapped by setDebug.

      Parameters

      • ...args: any[]

        Arguments to pass to the node. These will vary depending on the node.

      Returns void

    • Set whether the node should report debug information. It wraps the run method with additional debug information.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void

    • Updates the shader configuration for the current render pass. This is called before the shader is rendered. This method is a hook for custom shader configurations. You should override it if you need to adjust shader additions after initialization.

      Parameters

      Returns void