Thursday 1 November 2007

Let there be light

He said and there was. I made a mistake in my light class that made my light behave in an unexpected manner. Besides the normals of my Right, Floor and Back faces were inverted, by fixing it all it now looks like this:
I now also output the amount of vertices's that the whole scene contains, and back face culling is working. To get that to work I needed to change the way a front face is detected in GL. I had to change it because my faces are created by one function and then just rotated and translated into place.

No comments: