Diffuse Lighting Problem

Started by
0 comments, last by hatfarm 11 years ago

So, the best way to show what the problem is is to post a picture:

[sharedmedia=core:attachments:15545]

As you can see, my light does not cover the whole map. I've implemented it following this tutorial: http://ogldev.atspace.co.uk/www/tutorial18/tutorial18.html . No matter how I set the direction, it doesn't light the bottom part of the map. I don't think it's a problem with the normals being calculated properly, but I really can't think of what else it could possibly be. Any help would be greatly appreciated.

Advertisement

Haha, I worked for a day on this and I just couldn't figure it out. Then, I post this and I almost immediately figure it out. It wasn't a problem with calculating the normals, it was a problem with uploading them. I was telling it that the array was much smaller than it actually was...

This topic is closed to new replies.

Advertisement