Class PostProcessManager
Index
Constructors
constructor
-
Creates a new instance PostProcess
Parameters
- scene: Scene
The scene that the post process is associated with.
Returns PostProcessManager
- scene: Scene
Methods
direct Render
-
directRender(
postProcesses: PostProcess[],
targetTexture?: Nullable<RenderTargetWrapper>,
forceFullscreenViewport?: boolean,
faceIndex?: number,
lodLevel?: number,
doNotBindFrambuffer?: boolean,
numPostsProcesses?: number,
): voidManually 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
- postProcesses: PostProcess[]
dispose
-
Disposes of the post process manager.
Returns void
PostProcessManager is used to manage one or more post processes or post process pipelines See https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses