-
Senior Member
OpenGL Guru
twosided lighting
whats the calculations for doing twosided lighting correctly?
i know its pretty easy but i spent an hour on it and didn't really get anywhere
cheers zed
-
Advanced Member
Frequent Contributor
Re: twosided lighting
Well, the gl simply flips the normal and uses the back face material properties; otherwise, the base lighting calculations are the same.
-
Senior Member
OpenGL Guru
Re: twosided lighting
cheers
as they say here in oz, 'to easy!'
another case of me trying to over complicate things
-
Senior Member
OpenGL Guru
Re: twosided lighting
got it working my problem was i had the idea in my head i had to do something with the light direction vector.
when i just needed to find out if the polygon is backfacing from the cameras viewpoint
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules