Lighting textures

Started by
-1 comments, last by spek 17 years, 11 months ago
Hi, I use normal OpenGL lighting to lit textured objects. Now I want to add a day/night sequence, simply by adjusting the lightsource diffuse/ambient color. Some of the textures have windows inside them. Is it possible to light the texture, except the window part? I can't use shaders, so I need to do it with OpenGL somehow. Maybe an alpha texture, where pixels tell the influence of the light, could help? How to implement that? Greetings, Rick

This topic is closed to new replies.

Advertisement