Skip to content

Commit

Permalink
Minor modification.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jan 11, 2024
1 parent 3dd35bc commit 46b7e3f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sandbox/three_shadow2.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@
this.camera.position.set (cameraPosition.x, cameraPosition.y, cameraPosition.z);
this.parentGroup.add (this.camera);

let helper = new THREE.CameraHelper( this.camera );
this.parentGroup.add (helper);
// let helper = new THREE.CameraHelper( this.camera );
// this.parentGroup.add (helper);

this.shadowMaterial = new THREE.MeshBasicMaterial ({
color : '#00cc00'
color : '#aaaaaa'
});

this.blur = new ThreeBlurEffect (this.parentGroup, this.renderTarget, size.x, size.y);
}

Render (renderer, scene)
Expand All @@ -110,10 +112,11 @@
renderer.setRenderTarget (this.renderTarget);

renderer.render (scene, this.camera);

renderer.setRenderTarget (null);
scene.overrideMaterial = null;
this.planeMesh.visible = true;

this.blur.Render (renderer, 1.0);
renderer.setRenderTarget (null);
}
}

Expand Down

0 comments on commit 46b7e3f

Please sign in to comment.