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

Method initialize

src/effects/TiltShiftEffect.js:264–280  ·  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

262 */
263
264 initialize(renderer, alpha, frameBufferType) {
265
266 this.blurPass.initialize(renderer, alpha, frameBufferType);
267
268 if(frameBufferType !== undefined) {
269
270 this.renderTarget.texture.type = frameBufferType;
271
272 if(renderer !== null && renderer.outputColorSpace === SRGBColorSpace) {
273
274 this.renderTarget.texture.colorSpace = SRGBColorSpace;
275
276 }
277
278 }
279
280 }
281
282}

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected