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

Method copy

src/core/Resolution.js:486–493  ·  view source on GitHub ↗

* Copies the given resolution. * * @param {Resolution} resolution - The resolution.

(resolution)

Source from the content-addressed store, hash-verified

484 */
485
486 copy(resolution) {
487
488 this.s = resolution.scale;
489 this.baseSize.set(resolution.baseWidth, resolution.baseHeight);
490 this.preferredSize.set(resolution.preferredWidth, resolution.preferredHeight);
491 this.dispatchEvent({ type: "change" });
492
493 }
494
495 /**
496 * An auto sizing constant.

Callers 15

createLightsFunction · 0.80
god-rays.jsFile · 0.80
pickDepthFunction · 0.80
outline.jsFile · 0.80
updateMethod · 0.80
updateMethod · 0.80
setSizeMethod · 0.80
updateScaleOffsetMethod · 0.80
setSizeMethod · 0.80
setSizeMethod · 0.80
copyCameraSettingsMethod · 0.80
parseMethod · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected