|
@@ -249,6 +249,9 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
|
|
|
// Make selected objects invisible
|
|
|
this.changeVisibilityOfSelectedObjects( false );
|
|
|
|
|
|
+ var bg = this.renderScene.background;
|
|
|
+ this.renderScene.background = null;
|
|
|
+
|
|
|
// 1. Draw Non Selected objects in the depth buffer
|
|
|
this.renderScene.overrideMaterial = this.depthMaterial;
|
|
|
renderer.render( this.renderScene, this.renderCamera, this.renderTargetDepthBuffer, true );
|
|
@@ -269,6 +272,8 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
|
|
|
this.renderScene.overrideMaterial = null;
|
|
|
this.changeVisibilityOfNonSelectedObjects( true );
|
|
|
|
|
|
+ this.renderScene.background = bg;
|
|
|
+
|
|
|
// 2. Downsample to Half resolution
|
|
|
this.quad.material = this.materialCopy;
|
|
|
this.copyUniforms[ "tDiffuse" ].value = this.renderTargetMaskBuffer.texture;
|