Problem with Texture Lighting
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?
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]
--
Cheers,
Darren Clark
Cheers,
Darren Clark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement