postprocessing - v7.0.0-beta.16
    Preparing search index...

    Class RenderPipeline

    A render pipeline that can be used to group and run passes.

    Implements

    Index

    Constructors

    Properties

    resolution: Resolution

    The current resolution.

    updateStyle to control whether the style of the canvas should be updated.

    updateStyle: boolean

    Determines whether the style of the canvas should be updated when the resolution is changed.

    true
    

    Accessors

    • get autoRenderToScreen(): boolean

      Determines whether the last pass should automatically render to screen.

      Returns boolean

      true
      
    • set autoRenderToScreen(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    Methods

    • Compiles all passes in this pipeline.

      Returns Promise<void>

      A promise that resolves when the compilation has finished.

      pipeline.compile().then(() => renderer.setAnimationLoop(render));
      
    • Sets the device pixel ratio.

      Parameters

      • pixelRatio: number

        The pixel ratio.

      Returns void

    • Sets the scissor region for all passes.

      Please note that scissor settings need to be enabled on a per-pass basis to take effect.

      Parameters

      • x: number | Vector4

        The X-offset, or a vector that describes the scissor region.

      • y: number = 0

        The Y-offset starting in the lower left corner.

      • width: number = 0

        The width in logical pixels (before pixel ratio).

      • height: number = 0

        The height in logical pixels (before pixel ratio).

      Returns void

    • Sets the render size.

      Parameters

      • width: number

        The width in logical pixels (before pixel ratio).

      • height: number

        The height in logical pixels (before pixel ratio).

      • updateStyle: boolean = true

        Whether the style of the canvas should be updated. Default is true.

      Returns void

    • Sets the viewport for all passes.

      Please note that viewport settings need to be enabled on a per-pass basis to take effect.

      Parameters

      • x: number | Vector4

        The X-offset starting in the lower left corner, or a vector that describes the viewport.

      • y: number = 0

        The Y-offset starting in the lower left corner.

      • width: number = 0

        The width in logical pixels (before pixel ratio).

      • height: number = 0

        The height in logical pixels (before pixel ratio).

      Returns void