I created a structure using BoxGeometry, with a DirectionalLight rotating around it. However, I am facing an issue with aliased light bleed in the corners. I've attempted adjusting the shadow.mapSize, the blur radius, and the renderer.shadowMap.type, but none of these solutions have remedied the problem so far.
https://i.sstatic.net/3lFO2.png
const gui = new lil.GUI();
// Code examples and setup for the scene, camera, renderer, controls, lights, and mesh objects
// ANIMATE function for the animation
// GUI controls and configurations for shadow mapping and physically correct lights
// CSS styling for the webpage layout
// Required scripts and links for Three.js and OrbitControls
You can view a demo with an imported open box cube at the following link, where the artifacting issue still persists: