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

Method setProximityCutoff

src/effects/SSAOEffect.js:525–530  ·  view source on GitHub ↗

* Sets the occlusion proximity cutoff. * * @deprecated Use ssaoMaterial instead. * @param {Number} threshold - The proximity threshold. Range [0.0, 1.0]. * @param {Number} falloff - The falloff. Range [0.0, 1.0].

(threshold, falloff)

Source from the content-addressed store, hash-verified

523 */
524
525 setProximityCutoff(threshold, falloff) {
526
527 this.ssaoMaterial.proximityThreshold = threshold;
528 this.ssaoMaterial.proximityFalloff = falloff;
529
530 }
531
532 /**
533 * Sets the depth texture.

Callers 1

registerOptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected