MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / initialize

Method initialize

src/effects/OutlineEffect.js:811–825  ·  view source on GitHub ↗

* Performs initialization tasks. * * @param {WebGLRenderer} renderer - The renderer. * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not. * @param {Number} frameBufferType - The type of the main frame buffers.

(renderer, alpha, frameBufferType)

Source from the content-addressed store, hash-verified

809 */
810
811 initialize(renderer, alpha, frameBufferType) {
812
813 // No need for high precision: the blur pass operates on a mask texture.
814 this.blurPass.initialize(renderer, alpha, UnsignedByteType);
815
816 if(frameBufferType !== undefined) {
817
818 // These passes ignore the buffer type.
819 this.depthPass.initialize(renderer, alpha, frameBufferType);
820 this.maskPass.initialize(renderer, alpha, frameBufferType);
821 this.outlinePass.initialize(renderer, alpha, frameBufferType);
822
823 }
824
825 }
826
827}

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected