GUI affected by light in 3D scene
in
Programming Questions
•
2 years ago
Hallo,
I've got a problem: In my sketch (OPENGL-Modus) I draw a complex 3D scene with directionalLight. Onto that 3D stuff, I draw kind of a 2D GUI, consisting of filled rectangles with textlabels. The problem is, that this GUI is affected by the 3D light. When I rotate the light around the scene, any black or white filled GUI rectangle changes its color according to the position of that light from white to black.
So my question is: How can I limit the scope of that light? Or how is it possible to let the GUI unaffected by that light?
Thanks for your help!
I've got a problem: In my sketch (OPENGL-Modus) I draw a complex 3D scene with directionalLight. Onto that 3D stuff, I draw kind of a 2D GUI, consisting of filled rectangles with textlabels. The problem is, that this GUI is affected by the 3D light. When I rotate the light around the scene, any black or white filled GUI rectangle changes its color according to the position of that light from white to black.
So my question is: How can I limit the scope of that light? Or how is it possible to let the GUI unaffected by that light?
Thanks for your help!
1