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

Method setSize

src/passes/DepthDownsamplingPass.js:151–160  ·  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

149 */
150
151 setSize(width, height) {
152
153 const resolution = this.resolution;
154 resolution.setBaseSize(width, height);
155 this.renderTarget.setSize(resolution.width, resolution.height);
156
157 // Use the full resolution to calculate the depth/normal buffer texel size.
158 this.fullscreenMaterial.setSize(width, height);
159
160 }
161
162 /**
163 * Performs initialization tasks.

Callers 1

constructorMethod · 0.95

Calls 2

setBaseSizeMethod · 0.80
setSizeMethod · 0.65

Tested by

no test coverage detected