Shadow hitbox

hi, i am new to unity and i am developing a project for an exam with the theme: shadow and light.
In particular, I would like to simulate the behavior of light on a vampire avar. Could you tell me if it is possible to create a mechanic that recognizes when the avatar is hit by direct light or not without using raytracing and using the obras generated automatically by the unity tool? . In case you have any ideas on how to implement it or library to refer to?
Thanks
PS if it’s the wrong section to post it on, I apologize in advance.

I hate to be pedantic but you do know Vampires don’t actually have shadows right?

lol, i mean about light, i need to recognize whether an object is in direct light from a specific source or is in the shadow of another object. Yes probably my request wasn’t very clean hahaha

For all those who may have the same problem as me, you will need to use a raycast from the main light source that casts the shadows to your avatar. To make sure that the correspondence between shadow and raycast is actually right, it will also be necessary to make sure that the position of the light is correct at all times. In particular, given the rotation angle a on the X axis that manages the advancement effect of the day, the position of the light will be something like: pos (0, + -sin (x), + - cos (x)), if the rotation axis is Z then + -cos (x) will be the position of the light on the X axis.