I need to project the light onto the quad and use its value for translating the vertices.
I'm currently having 6 vertices, two quads,
The points are
A X C
B Y D
Point X, Y are coming from two ray casting downwards.
C = X + RightVector
D = Y + RightVector
A = X - RightVector
B = Y - RightVector
Now I want to translate the vertices based on lightDirectionVector, how would I do that ? I have a directional light, and that mesh of the two quads acting as a shadow quad.
Vector3 lightDir = mDirectionalLight.transform.forward;
Vector3 normLight = lightDir.normalized;
normaLight.y = 0;