I've got a bit of a maths problem here and I suspect it's pretty simple, but I can't quite get my head around it. (Probably mathematically dyslexic!)
This is an entirely 2D calculation. (No Z space required) - Working on the principle I have a 2D point in space, such as a null that I want as my "light", and a small solid as my "object", if I apply a drop shadow effect to the object, I need to calculate the angle of the shadow based on wherever the "light"'s position is, whether I move the "light" or the "object", it should be able to determine what angle they are relative to each other.
If you can add the cherry on the cake and work out the distance between the "light" and "object" to control the drop shadow opacity/blur, then that would be even cooler!
I'm sure I can't be the first to want an expression like this, someone MUST have done it before, but I can't seem to find a solution.
HAYYALLP!!
Many thanks,
Rob









