Ok so here I go, amateur me goes to learn how to do shadows… Oh man, OpenGL won’t do it for me… Ok so I go look for tutorials… Then we find the shadow matrix … Now I got smart and just figured, if that is the standard for shadowing in OpenGL, I can just copy and paste =-).
So here’s my problem. I have a sphere and a plane. I have a working shadowMatrix command and want to now: what variables, arrays and stuff that needs to go in the display code to get my shadows visible on the plane. I got reflections down and this is the only thing that hinders me =-(…
You’ll only need the shadow matrix. Render your scene. Determine the plane to render the shades on. Set the projection matrix, render in your favorite shade color
Ok this really is not working. The glut code and nVida code are not well explained. I have no idea what to do here . Does anyone have well explained shadow code. I have tried this so many times I think I’m going to turn into a shadow .