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

Method setSize

src/passes/NormalPass.js:188–194  ·  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

186 */
187
188 setSize(width, height) {
189
190 const resolution = this.resolution;
191 resolution.setBaseSize(width, height);
192 this.renderTarget.setSize(resolution.width, resolution.height);
193
194 }
195
196}

Callers 1

constructorMethod · 0.95

Calls 2

setBaseSizeMethod · 0.80
setSizeMethod · 0.65

Tested by

no test coverage detected