I am working with shadows in three.js but I have an issue, that is the shadow is projecting on two faces of a mesh, like this.
the shadow of the "head" of my actor is on two faces of the red polygon, i don't know why, I am using THREE.HemisphereLight
and THREE.DirectionalLight
also the properties castShadow
and receiveShadow
See this bug report: https://github.com/mrdoob/three.js/issues/2454
You could break your red bar into 2 objects, one that receives shadows and one that doesn't. Or simply use a different material for each face.
Or adjust the shadow camera box so it doesn't encompass both sides of the red bar. That way you'd control how far the shadow is cast.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.