Sign in to follow this  
hatfarm

Diffuse Lighting Problem

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this