diff --git a/examples/jsm/postprocessing/BokehPass.js b/examples/jsm/postprocessing/BokehPass.js index c91174ad840c650eb5eb199bdc2aa78245759f5d..ef46423a4e1111b347d5f163d256c8d944b1ead5 100644 --- a/examples/jsm/postprocessing/BokehPass.js +++ b/examples/jsm/postprocessing/BokehPass.js @@ -77,7 +77,7 @@ var BokehPass = function ( scene, camera, params ) { this.fsQuad = new Pass.FullScreenQuad( this.materialBokeh ); - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); }; @@ -91,7 +91,7 @@ BokehPass.prototype = Object.assign( Object.create( Pass.prototype ), { this.scene.overrideMaterial = this.materialDepth; - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); var oldClearAlpha = renderer.getClearAlpha(); var oldAutoClear = renderer.autoClear; renderer.autoClear = false; @@ -122,7 +122,7 @@ BokehPass.prototype = Object.assign( Object.create( Pass.prototype ), { } this.scene.overrideMaterial = null; - renderer.setClearColor( this.oldClearColor ); + renderer.setClearColor( this._oldClearColor ); renderer.setClearAlpha( oldClearAlpha ); renderer.autoClear = oldAutoClear; diff --git a/examples/jsm/postprocessing/ClearPass.js b/examples/jsm/postprocessing/ClearPass.js index 5661e349cf4351543a8c69f6fdfe2d984ad0cb1f..ae363faf8d2e8b373a35b15c43ea1eddc8d4619b 100644 --- a/examples/jsm/postprocessing/ClearPass.js +++ b/examples/jsm/postprocessing/ClearPass.js @@ -11,7 +11,7 @@ var ClearPass = function ( clearColor, clearAlpha ) { this.clearColor = ( clearColor !== undefined ) ? clearColor : 0x000000; this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0; - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); }; @@ -25,7 +25,7 @@ ClearPass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.clearColor ) { - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); oldClearAlpha = renderer.getClearAlpha(); renderer.setClearColor( this.clearColor, this.clearAlpha ); @@ -37,7 +37,7 @@ ClearPass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.clearColor ) { - renderer.setClearColor( this.oldClearColor, oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, oldClearAlpha ); } diff --git a/examples/jsm/postprocessing/OutlinePass.js b/examples/jsm/postprocessing/OutlinePass.js index 8b8b9b4a60a3fc7d308900710c384b433ca74e6b..866cb353ab63beff3972393bf2e8d1356a93a43d 100644 --- a/examples/jsm/postprocessing/OutlinePass.js +++ b/examples/jsm/postprocessing/OutlinePass.js @@ -116,7 +116,7 @@ var OutlinePass = function ( resolution, scene, camera, selectedObjects ) { this.enabled = true; this.needsSwap = false; - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); this.oldClearAlpha = 1; this.fsQuad = new Pass.FullScreenQuad( null ); @@ -296,7 +296,7 @@ OutlinePass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.selectedObjects.length > 0 ) { - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); this.oldClearAlpha = renderer.getClearAlpha(); var oldAutoClear = renderer.autoClear; @@ -411,7 +411,7 @@ OutlinePass.prototype = Object.assign( Object.create( Pass.prototype ), { renderer.setRenderTarget( readBuffer ); this.fsQuad.render( renderer ); - renderer.setClearColor( this.oldClearColor, this.oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, this.oldClearAlpha ); renderer.autoClear = oldAutoClear; } diff --git a/examples/jsm/postprocessing/RenderPass.js b/examples/jsm/postprocessing/RenderPass.js index 7531eb87fd79cb96675126bf6a52ae7ba9e9431b..eb470b3228e03e199f4dd63a12a492aca6c39aa8 100644 --- a/examples/jsm/postprocessing/RenderPass.js +++ b/examples/jsm/postprocessing/RenderPass.js @@ -18,7 +18,7 @@ var RenderPass = function ( scene, camera, overrideMaterial, clearColor, clearAl this.clear = true; this.clearDepth = false; this.needsSwap = false; - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); }; @@ -43,7 +43,7 @@ RenderPass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.clearColor ) { - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); oldClearAlpha = renderer.getClearAlpha(); renderer.setClearColor( this.clearColor, this.clearAlpha ); @@ -64,7 +64,7 @@ RenderPass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.clearColor ) { - renderer.setClearColor( this.oldClearColor, oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, oldClearAlpha ); } diff --git a/examples/jsm/postprocessing/SAOPass.js b/examples/jsm/postprocessing/SAOPass.js index 2e1ff2e18441efcb55347d80b42ffeb36fcddcb3..73759859d7599d81eccfcee21cbde31dc163d7e8 100644 --- a/examples/jsm/postprocessing/SAOPass.js +++ b/examples/jsm/postprocessing/SAOPass.js @@ -44,7 +44,7 @@ var SAOPass = function ( scene, camera, depthTexture, useNormals, resolution ) { this.supportsNormalTexture = ( useNormals !== undefined ) ? useNormals : false; this.originalClearColor = new Color(); - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); this.oldClearAlpha = 1; this.params = { @@ -220,7 +220,7 @@ SAOPass.prototype = Object.assign( Object.create( Pass.prototype ), { } - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); this.oldClearAlpha = renderer.getClearAlpha(); var oldAutoClear = renderer.autoClear; renderer.autoClear = false; @@ -331,7 +331,7 @@ SAOPass.prototype = Object.assign( Object.create( Pass.prototype ), { // Rendering SAOPass result on top of previous pass this.renderPass( renderer, outputMaterial, this.renderToScreen ? null : readBuffer ); - renderer.setClearColor( this.oldClearColor, this.oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, this.oldClearAlpha ); renderer.autoClear = oldAutoClear; }, diff --git a/examples/jsm/postprocessing/SSAARenderPass.js b/examples/jsm/postprocessing/SSAARenderPass.js index a7d28918c2cf3c61d4ae101af054d2e188674137..678048be8c9acc6e9c109f496122724cc9efb23f 100644 --- a/examples/jsm/postprocessing/SSAARenderPass.js +++ b/examples/jsm/postprocessing/SSAARenderPass.js @@ -33,7 +33,7 @@ var 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 Color(); + this._oldClearColor = new Color(); if ( CopyShader === undefined ) console.error( "SSAARenderPass relies on CopyShader" ); @@ -90,7 +90,7 @@ SSAARenderPass.prototype = Object.assign( Object.create( Pass.prototype ), { 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; @@ -147,7 +147,7 @@ SSAARenderPass.prototype = Object.assign( Object.create( Pass.prototype ), { if ( this.camera.clearViewOffset ) this.camera.clearViewOffset(); renderer.autoClear = autoClear; - renderer.setClearColor( this.oldClearColor, oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, oldClearAlpha ); } diff --git a/examples/jsm/postprocessing/UnrealBloomPass.js b/examples/jsm/postprocessing/UnrealBloomPass.js index b84da32e963cf6cde4db64bf40517bcf43718c4c..c75d2f3142aacacf2544779fd74c3e902a4e0479 100644 --- a/examples/jsm/postprocessing/UnrealBloomPass.js +++ b/examples/jsm/postprocessing/UnrealBloomPass.js @@ -147,7 +147,7 @@ var UnrealBloomPass = function ( resolution, strength, radius, threshold ) { this.enabled = true; this.needsSwap = false; - this.oldClearColor = new Color(); + this._oldClearColor = new Color(); this.oldClearAlpha = 1; this.basic = new MeshBasicMaterial(); @@ -201,7 +201,7 @@ UnrealBloomPass.prototype = Object.assign( Object.create( Pass.prototype ), { render: function ( renderer, writeBuffer, readBuffer, deltaTime, maskActive ) { - renderer.getClearColor( this.oldClearColor ); + renderer.getClearColor( this._oldClearColor ); this.oldClearAlpha = renderer.getClearAlpha(); var oldAutoClear = renderer.autoClear; renderer.autoClear = false; @@ -289,7 +289,7 @@ UnrealBloomPass.prototype = Object.assign( Object.create( Pass.prototype ), { // Restore renderer settings - renderer.setClearColor( this.oldClearColor, this.oldClearAlpha ); + renderer.setClearColor( this._oldClearColor, this.oldClearAlpha ); renderer.autoClear = oldAutoClear; },