Hi guys, currently suffering from shadow acne on my Meshes with SpotLight. Any pointers to the most probable cause of this? I know its shadow acne because if I deactivate DoubleSided or either castShadow or receiveShadow, the artifact is not happening anymore.
@Vikms95 –
Have you tried to cure the acne with a proper shadow .bias
?
https://threejs.org/docs/#api/en/lights/shadows/LightShadow.bias
– Pavel
Assigning ‘0.0001’ to this value is giving me different visual result, though artifacts still appear. Thing is, I do use 3 different lights on my project, so I could give a different bias value to each one depending on which one is used. But is there another property or parameter that might be causing this?
it’s usually a negative value
@Vikms95 –
You might try larger values (positive, or negative). In some cases, I find myself using bias ±0.01 or even larger (but this might cause other side effects, though). The type of the artifacts also depends on the type of shadow:
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
Some shadow types are more prone to artifacts. Other possible values are listed here: three.js docs
– Pavel