Commit 56803dc7 authored by Guillaume Seguin's avatar Guillaume Seguin

Bring back LIGHT1 diffuse parameters

parent f97b48ad
...@@ -183,6 +183,7 @@ class wxGLPanel(wx.Panel): ...@@ -183,6 +183,7 @@ class wxGLPanel(wx.Panel):
glEnable(GL_LIGHT1) glEnable(GL_LIGHT1)
glLightfv(GL_LIGHT1, GL_AMBIENT, vec(0, 0, 0, 1.0)) glLightfv(GL_LIGHT1, GL_AMBIENT, vec(0, 0, 0, 1.0))
glLightfv(GL_LIGHT1, GL_SPECULAR, vec(0.2, 0.2, 0.2, 1.0)) glLightfv(GL_LIGHT1, GL_SPECULAR, vec(0.2, 0.2, 0.2, 1.0))
glLightfv(GL_LIGHT2, GL_DIFFUSE, vec(0.8, 0.8, 0.8, 1))
glLightfv(GL_LIGHT1, GL_POSITION, vec(1, 2, 3, 0)) glLightfv(GL_LIGHT1, GL_POSITION, vec(1, 2, 3, 0))
glEnable(GL_LIGHT2) glEnable(GL_LIGHT2)
glLightfv(GL_LIGHT2, GL_AMBIENT, vec(0, 0, 0, 1.0)) glLightfv(GL_LIGHT2, GL_AMBIENT, vec(0, 0, 0, 1.0))
......
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