|
@@ -115,10 +115,11 @@
|
|
map: renderTarget.texture,
|
|
map: renderTarget.texture,
|
|
opacity: state.shadow.opacity,
|
|
opacity: state.shadow.opacity,
|
|
transparent: true,
|
|
transparent: true,
|
|
|
|
+ depthWrite: false,
|
|
} );
|
|
} );
|
|
plane = new THREE.Mesh( planeGeometry, planeMaterial );
|
|
plane = new THREE.Mesh( planeGeometry, planeMaterial );
|
|
- plane.material.polygonOffset = true;
|
|
|
|
- plane.material.polygonOffsetFactor = -.1;
|
|
|
|
|
|
+ // make sure it's rendered ahead the fillPlane
|
|
|
|
+ plane.renderOrder = 1;
|
|
shadowGroup.add( plane );
|
|
shadowGroup.add( plane );
|
|
|
|
|
|
// the y from the texture is flipped!
|
|
// the y from the texture is flipped!
|
|
@@ -134,6 +135,7 @@
|
|
color: state.plane.color,
|
|
color: state.plane.color,
|
|
opacity: state.plane.opacity,
|
|
opacity: state.plane.opacity,
|
|
transparent: true,
|
|
transparent: true,
|
|
|
|
+ depthWrite: false,
|
|
} );
|
|
} );
|
|
fillPlane = new THREE.Mesh( planeGeometry, fillPlaneMaterial );
|
|
fillPlane = new THREE.Mesh( planeGeometry, fillPlaneMaterial );
|
|
fillPlane.rotateX( Math.PI );
|
|
fillPlane.rotateX( Math.PI );
|