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

Method setSize

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

244 */
245
246 setSize(width, height) {
247
248 const resolution = this.resolution;
249 resolution.setBaseSize(width, height);
250
251 this.renderTarget.setSize(resolution.width, resolution.height);
252 this.blurPass.resolution.copy(resolution);
253
254 }
255
256 /**
257 * 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