Skip to content

Commit 46b7e3f

Browse files
committed
Minor modification.
1 parent 3dd35bc commit 46b7e3f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

sandbox/three_shadow2.html

+8-5
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@
9595
this.camera.position.set (cameraPosition.x, cameraPosition.y, cameraPosition.z);
9696
this.parentGroup.add (this.camera);
9797

98-
let helper = new THREE.CameraHelper( this.camera );
99-
this.parentGroup.add (helper);
98+
// let helper = new THREE.CameraHelper( this.camera );
99+
// this.parentGroup.add (helper);
100100

101101
this.shadowMaterial = new THREE.MeshBasicMaterial ({
102-
color : '#00cc00'
102+
color : '#aaaaaa'
103103
});
104+
105+
this.blur = new ThreeBlurEffect (this.parentGroup, this.renderTarget, size.x, size.y);
104106
}
105107

106108
Render (renderer, scene)
@@ -110,10 +112,11 @@
110112
renderer.setRenderTarget (this.renderTarget);
111113

112114
renderer.render (scene, this.camera);
113-
114-
renderer.setRenderTarget (null);
115115
scene.overrideMaterial = null;
116116
this.planeMesh.visible = true;
117+
118+
this.blur.Render (renderer, 1.0);
119+
renderer.setRenderTarget (null);
117120
}
118121
}
119122

0 commit comments

Comments
 (0)