Unexpected results for projection on to plane
- by ravenspoint
I want to use this projection matrix:
GLfloat shadow[] = {
-1,0,0,0,
1,0,-1,1,
0,0,-1,0,
0,0,0,-1 };
It should cast object shadows onto the y = 0 plane from a point light at 1,1,-1.
I create a rectangle in the x = 0.5 plane
glBegin( GL_QUADS );
glVertex3f( 0.5,0.2,-0.5);
glVertex3f( 0.5,0.2,-1.5);
glVertex3f(…