PostProcessorModule

πŸ‘

Required modules

  • renderer
  • scene
  • camera
  • renderer

API

.addPass(pass)

Adds pass to the list of passes for post-processing

.swapBuffers()

Swap read and write buffers.

.getPass(name)

Looks for path by it's .name and returns the following one

.getPassIndex(passIndicator)

passIndicator can be a name or a pass instance.

πŸ‘

Returns index of a pass inside pass array.

.addPassAfter(previousPassIndicator, pass)

previousPassIndicator can be a name or a pass instance. This function is similar to .addPass(), but adds pass exactly after the provided one.

.insertPass(pass, index)

Insert pass to the place with the following index inside pass array.

.removePass(passIndicator)

Remove a pass with the following indicator (name).

.createRenderPass(renderToScreen = false)

Creates a RenderPass instance and adds it to PostProcessorModule.

.render(delta)

Render all data

reset(renderTarget)

Reset the following renderTarget.

.setSize(width, height)

Set width & height to used renderTarget.