if I have a plane which has four vertices, as shown in the following figure. I would like based on the distance between the light source and positions of those four vertices, to scale( shrink or extend )the plane accordingly to that distance. What maths involved in that?
In plain words, I have a "directional" light source in the scene, and I have a plan with 4 vertices, I would like to shrink or extend ( scale) the four vertices positions, based on how far or how close I'm to the directional light. so that I can simulate a shadow...