Sign in to follow this  
FireViper

Problem with Texture Lighting

Recommended Posts

I was trying to add lighting to my game engine, but it seems that all the objects with texture aren't affected by it. If I remove the texture, then it works just fine. Its probably something simple, but I'm not really sure what I'm doing wrong. Anyone have an idea?

Share this post


Link to post
Share on other sites
To use textures with lighting you'll need to let OpenGL know that you want them blending together with:
glEnable(GL_COLOR_MATERIAL);
Hope that sorts it for you. [smile]

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