Original Post
I have a question about lighting. In my code, i create a triangle. And I also have a light. But here is the problem: The light only works as expected when the x and z values are the same as the triangle's. Otherwise, there is barely any light coming - even when the light is still above the triangle, but not above a vertex. The y difference between triangle and light is 1.0. Is this supposed to happen? How do I fix it?