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

Method setSize

src/passes/DepthPass.js:185–191  ·  view source on GitHub ↗

* Updates the size of this pass. * * @param {Number} width - The width. * @param {Number} height - The height.

(width, height)

Source from the content-addressed store, hash-verified

183 */
184
185 setSize(width, height) {
186
187 const resolution = this.resolution;
188 resolution.setBaseSize(width, height);
189 this.renderTarget.setSize(resolution.width, resolution.height);
190
191 }
192
193 /**
194 * Performs initialization tasks.

Callers 1

constructorMethod · 0.95

Calls 2

setBaseSizeMethod · 0.80
setSizeMethod · 0.65

Tested by

no test coverage detected