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

Method setSize

src/effects/BloomEffect.js:426–437  ·  view source on GitHub ↗

* Updates the size of internal render targets. * * @param {Number} width - The width. * @param {Number} height - The height.

(width, height)

Source from the content-addressed store, hash-verified

424 */
425
426 setSize(width, height) {
427
428 const resolution = this.resolution;
429 resolution.setBaseSize(width, height);
430
431 this.renderTarget.setSize(resolution.width, resolution.height);
432 this.blurPass.resolution.copy(resolution);
433
434 this.luminancePass.setSize(width, height);
435 this.mipmapBlurPass.setSize(width, height);
436
437 }
438
439 /**
440 * Performs initialization tasks.

Callers 1

constructorMethod · 0.95

Calls 3

setBaseSizeMethod · 0.80
copyMethod · 0.80
setSizeMethod · 0.65

Tested by

no test coverage detected