-
Lighted texture
Hello all,
The OpenGL doesn't add light to textures automatically.
Can any one help me doing that ?
MHassan
-
Member
Regular Contributor
Re: Lighted texture
glEnable(GL_LIGHT0)
glEnable(GL_LIGHTING)
and make sure your texture environment is GL_MODULATE and you have correct normals for all vertices
http://nehe.gamedev.net
http://www.gametutorials.com
billions of tutorials here, also have lighting explained
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