I've been grappling with a problem for hours now and could really use some help.
So, I have this spotlight in my scene that I imported from a collada file, but for some reason, the shadow is getting cut off. Even when I turn on the camerashadow helper, it stops exactly where the shadow is being cutoff. I've tried countless times to adjust it, but nothing seems to be working.
Here are the settings I've applied to my spot light:
if (child instanceof THREE.SpotLight) {
if(child.name == 'R_LIGHT_Spot-01'){
console.log(child)
child.castShadow = true;
child.shadowBias = 0.02;
child.shadowCameraNear = 0.1;
child.shadowCameraFov = 35;
child.intensity = 2.2;
child.shadowMapWidth = 2048; // default is 1024
child.shadowMapHeight = 2048; // default is 1024
child.shadowDarkness = 0.1; // default is 512
}
}
Additionally, here are the renderer options for shadows :
renderer.shadowMapType = THREE.PCFSoftShadowMap;
renderer.shadowMapEnabled = true;
renderer.shadowMapSoft = true;
Any assistance you can provide would be greatly appreciated. Thank you!