Is there a way to have soft shadows with PointLight in Threejs?
Like in the picture below:
Yes. To have soft shadows in your scene you have to set the renderer like this:
var renderer = new THREE.WebGLRenderer(); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap; // the default is THREE.PCFShadowMap
Source: documentation
Copyright © 2021 Jogjafile Inc.
Yes. To have soft shadows in your scene you have to set the renderer like this:
Source: documentation