Original Post
hello!
i'm a total beginner at OpenGl. I'm doing a simple "testgame" and i'm really stuck:
Ive made an object called Entity that contains vertecies for a cube. it worked just fine to render it until i tried to implement ligting.now some sides of the cube appears transparent (when you place more than one in the scene)? i've tripplechecked the facenomals and they are all of length 1.
when i try it with only one cube in the scene it works fine.
all answers appreciated!
i'm a total beginner at OpenGl. I'm doing a simple "testgame" and i'm really stuck:
Ive made an object called Entity that contains vertecies for a cube. it worked just fine to render it until i tried to implement ligting.now some sides of the cube appears transparent (when you place more than one in the scene)? i've tripplechecked the facenomals and they are all of length 1.
when i try it with only one cube in the scene it works fine.
all answers appreciated!