Everything turning black when pitching down
Posted
by
Gordon
on Game Development
See other posts from Game Development
or by Gordon
Published on 2012-12-05T18:50:50Z
Indexed on
2012/12/05
23:21 UTC
Read the original article
Hit count: 317
opengl
Just a quick questions about something that's occurring in my world. Every time I pitch my camera downward, everything starts turning black, and if I pitch upward, everything sort of intensifies.
I'm multiplying my normals by the normal matrix in the shader, and I'm multiplying my lights direction by the model view matrix.
If I leave the normal and light dir in world space everything ends up fine.
I thought putting them both in view space would not cause those weird things to happen?
© Game Development or respective owner