API

Class PostProcessManager

PostProcessManager is used to manage one or more post processes or post process pipelines See https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses

Index
onBeforeRenderObservable: Observable<PostProcessManager> = ...

Observable raised before post processes are rendered.

  • Manually render a set of post processes to a texture. Please note, the frame buffer won't be unbound after the call in case you have more render to do.

    Parameters

    • postProcesses: PostProcess[]

      An array of post processes to be run.

    • targetTexture: Nullable<RenderTargetWrapper> = null

      The render target wrapper to render to.

    • forceFullscreenViewport: boolean = false

      force gl.viewport to be full screen eg. 0,0,textureWidth,textureHeight

    • faceIndex: number = 0

      defines the face to render to if a cubemap is defined as the target

    • lodLevel: number = 0

      defines which lod of the texture to render to

    • doNotBindFrambuffer: boolean = false

      If set to true, assumes that the framebuffer has been bound previously

    • numPostsProcesses: number = postProcesses.length

      The number of post processes to render. Defaults to the length of the postProcesses array.

    Returns void