Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.m_compositeMaterial.uniforms["bloomStrength"].value = strength;
this.m_compositeMaterial.uniforms["bloomRadius"].value = 0.1;
this.m_compositeMaterial.needsUpdate = true;
const bloomFactors = [1.0, 0.8, 0.6, 0.4, 0.2];
this.m_compositeMaterial.uniforms["bloomFactors"].value = bloomFactors;
this.m_compositeMaterial.uniforms["bloomTintColors"].value = this.m_bloomTintColors;
this.m_copyUniforms = THREE.UniformsUtils.clone(CopyShader.uniforms);
this.m_copyUniforms["opacity"].value = 1.0;
// tslint:enable:no-string-literal
this.m_materialCopy = new THREE.ShaderMaterial({
uniforms: this.m_copyUniforms,
vertexShader: CopyShader.vertexShader,
fragmentShader: CopyShader.fragmentShader,
blending: THREE.AdditiveBlending,
depthTest: false,
depthWrite: false,
transparent: true
});
}
dispose() {