Hi,
I have a textured scene. For each vertex I calculated a shadow color which I assign via glColor3f: black: full shadow, white: no shadow. Now I want to add a light-source which darkens faces that are not facing it but does not enlight the shadow.
Adding a simple Light and enabling GL_COLOR_MATERIAL gives me a good starting Point: dark faces stay dark and faces which not face the light source a darkened too. But unfortunatley they are darkened too much.
How can I make them brighter? If I add GL_EMISSION to [.5, .5, .5, 1] they get brighter, but my shadows are also lit up (what I dont want)…
Does someone know a good reference for OpenGL lighting or can give me a Hint how I get the desired effect?