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

Method setDistanceCutoff

src/effects/SSAOEffect.js:510–515  ·  view source on GitHub ↗

* Sets the occlusion distance cutoff. * * @deprecated Use ssaoMaterial instead. * @param {Number} threshold - The distance 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

508 */
509
510 setDistanceCutoff(threshold, falloff) {
511
512 this.ssaoMaterial.distanceThreshold = threshold;
513 this.ssaoMaterial.distanceFalloff = falloff;
514
515 }
516
517 /**
518 * Sets the occlusion proximity cutoff.

Callers 1

registerOptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected