How to access shadow math in Three.js? There is a scene with DirectionalLight objects and light source. You can see the link.
As you can see in the picture there is a house with a white roof, which is represented by a plane (plane 100x45). On the plane falls the shadow of the surrounding objects.
How can I access mathematics shadows? To get a shadow map for the surface and then solve the seemingly trivial task: to determine whether the point of the surface is in the shadow or not? I read about the version with Raycaster (), but it will not work here, because DirectionalLight source.

THREE.Raycaster()with theTHREE.Raycaster()? WithTHREE.DirectionalLight()this is even easier to do, since it is not necessary to calculate the vector from / to the source. 1) There is a point on the plane in global coordinates, 2) Take the normalized position vector of the light, 3) AtRaycaster()create a beam formed from item 1 and item 2 (the start point and direction), 4) We are looking for the intersection of this beam with objects of the scene, 5) If the array of intersected objects is not empty, then the point is in the shadow. - prisoner849.set ( origin, direction )method. Array of intersected objects:.intersectObjects ( objects, recursive )method.intersectObjects ( objects, recursive ). - prisoner849