I have the following code, refer to live demo, the configuration is similar
const clipPlanes = [
new Plane(new Vector3(1, 0, 0), 0),
new Plane(new Vector3(0, -1, 0), 0),
new Plane(new Vector3(0, 0, -1), 0),
];
const geometry = new BoxGeometry(150, 150, 150);
const material = new MeshBasicMaterial({
color: 'yellow',
side: DoubleSide,
clippingPlanes: clipPlanes,
clipIntersection: true,
});
const box = new Mesh(geometry, material);
engine.add(box);
But the results were very strange,The result will change as my perspective changes.
Can anyone help explain what’s causing this strange phenomenon? How to solve it? Thanks in advance