I am working with react three fiber in a scene. This is the relevant code
<primitive castShadow recieveShadow name={"lampshade"} object={props.meshObject} position={[0, 0, 0]} />
<primitive name={"shadowCatcher"} object={props.shadowObject.shadowCatcherMesh} />
shadow catcher element is just a transparent plane under the actual object.
This is what I get in the scene.
I have purposefully left the light helper in the scene that shows the position of the directional light and the frustum planes of the camera.
The lamp should cast shadow onto itself, but it doesn't.
- I know it's not fully inside the frustum planes, but even the part that is inside it is not catching any shadows.
- I have tried changing the frustum planes, it doesn't help even if the whole object is inside it.
Am I missing any settings that enable shadows on the object itself?