|
@@ -21,7 +21,7 @@ THREE.SSAARenderPass = function ( scene, camera, clearColor, clearAlpha ) {
|
|
|
// as we need to clear the buffer in this pass, clearColor must be set to something, defaults to black.
|
|
|
this.clearColor = ( clearColor !== undefined ) ? clearColor : 0x000000;
|
|
|
this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0;
|
|
|
- this.oldClearColor = new THREE.Color();
|
|
|
+ this._oldClearColor = new THREE.Color();
|
|
|
|
|
|
if ( THREE.CopyShader === undefined ) console.error( "THREE.SSAARenderPass relies on THREE.CopyShader" );
|
|
|
|
|
@@ -78,7 +78,7 @@ THREE.SSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass.protot
|
|
|
var autoClear = renderer.autoClear;
|
|
|
renderer.autoClear = false;
|
|
|
|
|
|
- renderer.getClearColor( this.oldClearColor );
|
|
|
+ renderer.getClearColor( this._oldClearColor );
|
|
|
var oldClearAlpha = renderer.getClearAlpha();
|
|
|
|
|
|
var baseSampleWeight = 1.0 / jitterOffsets.length;
|
|
@@ -135,7 +135,7 @@ THREE.SSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass.protot
|
|
|
if ( this.camera.clearViewOffset ) this.camera.clearViewOffset();
|
|
|
|
|
|
renderer.autoClear = autoClear;
|
|
|
- renderer.setClearColor( this.oldClearColor, oldClearAlpha );
|
|
|
+ renderer.setClearColor( this._oldClearColor, oldClearAlpha );
|
|
|
|
|
|
}
|
|
|
|