Hello,
In my scene I have a planeBufferGeometry (yellow) and the extrudeBufferGeometry (green). If the ExtrudeBuffer
This is code for ExtrudeBufferGeometry:
var extrudeSettings = {
steps: 1,
depth: 0.5,
bevelEnabled: false
};
var extrudeGeom = new THREE.ExtrudeBufferGeometry(shape, extrudeSettings);
extrudeGeom.groupsNeedUpdate = true;
var pavement = new THREE.Mesh( extrudeGeom, [
new THREE.MeshLambertMaterial({color: ColorPavement1, transparent: true, opacity: 1}),
new THREE.MeshLambertMaterial({color: ColorPavement2, transparent: true, opacity: 1})
] ) ;
pavement.matrixWorldNeedsUpdate = true;
pavement.name = "Pavement";
pavement.rotation.x = Math.PI * - 0.5;
pavement.geometry.attributes.position.needsUpdate = true;
pavement.matrixAutoUpdate = true;
pavement.castShadow = true;
pavement.receiveShadow = true;
I noticed that if depth is small (less than one) in some camera positions I am seeing this:
Is there a way to overcome thiss issue?
Many thanks!
Mirko