Commit 5bca892f authored by Guillaume Seguin's avatar Guillaume Seguin

Disable light 2 in stl plater

We enable it by default but don't want it for stls
parent 24fb8513
...@@ -109,6 +109,7 @@ class StlViewPanel(wxGLPanel): ...@@ -109,6 +109,7 @@ class StlViewPanel(wxGLPanel):
glEnable(GL_LIGHTING) glEnable(GL_LIGHTING)
glEnable(GL_LIGHT0) glEnable(GL_LIGHT0)
glEnable(GL_LIGHT1) glEnable(GL_LIGHT1)
glDisable(GL_LIGHT2)
glLightfv(GL_LIGHT0, GL_POSITION, vec(.5, .5, 1, 0)) glLightfv(GL_LIGHT0, GL_POSITION, vec(.5, .5, 1, 0))
glLightfv(GL_LIGHT0, GL_SPECULAR, vec(.5, .5, 1, 1)) glLightfv(GL_LIGHT0, GL_SPECULAR, vec(.5, .5, 1, 1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment