MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / setQuality

Method setQuality

web/observatory/js/post-processing.js:106–120  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

104 }
105
106 setQuality(level) {
107 if (level === 0) {
108 this._bloomPass.strength = 0;
109 this._vignettePass.uniforms.uChromaticStrength.value = 0;
110 this._vignettePass.uniforms.uGrainStrength.value = 0;
111 } else if (level === 1) {
112 this._bloomPass.strength = 0.6;
113 this._vignettePass.uniforms.uChromaticStrength.value = 0.001;
114 this._vignettePass.uniforms.uGrainStrength.value = 0.02;
115 } else {
116 this._bloomPass.strength = 1.0;
117 this._vignettePass.uniforms.uChromaticStrength.value = 0.0015;
118 this._vignettePass.uniforms.uGrainStrength.value = 0.03;
119 }
120 }
121
122 dispose() {
123 this.composer.dispose();

Callers 1

_adaptQualityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected