In previous versions of Chrome, a white floor was shown behind, On the latest versions of Chrome (111.0.5563.66) and Edge (111.0.1661.44) or later browsers, the bottom white area is displayed in front as shown below.
before:
after:
In EdgeIE mode, it works as before.
Is this a Chrome bug?
The actual code is below.
//box
let boxGeometry = new THREE.BoxGeometry(param.Width, param.Height, param.Depth);
let boxMaterial = new THREE.MeshLambertMaterial({ color: param.Color });
box = new THREE.Mesh(boxGeometry, boxMaterial);
box.position.set(param.Position.x, param.Position.y, param.Position.z);
let geometry = new THREE.BoxGeometry(param.Width, param.Height, param.Depth);
let edges = new THREE.EdgesGeometry(geometry);
let line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0x000000 }));
box.add(line);
scene.add(box);
// floor
let floorWidth = model.Width - (model.BaseCutLL + model.BaseCutRL);
var floorGeometry = new THREE.BoxGeometry(floorWidth, 0.1, model.Depth);
var floorMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff });
var floorMesh = new THREE.Mesh(floorGeometry, floorMaterial);
scene.add(floorMesh)