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

Method initialize

src/effects/BloomEffect.js:447–465  ·  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

445 */
446
447 initialize(renderer, alpha, frameBufferType) {
448
449 this.blurPass.initialize(renderer, alpha, frameBufferType);
450 this.luminancePass.initialize(renderer, alpha, frameBufferType);
451 this.mipmapBlurPass.initialize(renderer, alpha, frameBufferType);
452
453 if(frameBufferType !== undefined) {
454
455 this.renderTarget.texture.type = frameBufferType;
456
457 if(renderer !== null && renderer.outputColorSpace === SRGBColorSpace) {
458
459 this.renderTarget.texture.colorSpace = SRGBColorSpace;
460
461 }
462
463 }
464
465 }
466
467}

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected