disable lighting and depth test
This commit is contained in:
parent
dd8bd07d1e
commit
4cc7901c2d
@ -35,12 +35,6 @@ class SketchWidget:
|
|||||||
# GL calls
|
# GL calls
|
||||||
if not gldrawable.gl_begin(glcontext): return
|
if not gldrawable.gl_begin(glcontext): return
|
||||||
|
|
||||||
glLightfv(GL_LIGHT0, GL_POSITION, (1, 1, 1, 0))
|
|
||||||
glEnable(GL_CULL_FACE)
|
|
||||||
glEnable(GL_LIGHTING)
|
|
||||||
glEnable(GL_LIGHT0)
|
|
||||||
glEnable(GL_DEPTH_TEST)
|
|
||||||
|
|
||||||
gldrawable.gl_end()
|
gldrawable.gl_end()
|
||||||
|
|
||||||
def reshape(self, glarea, event):
|
def reshape(self, glarea, event):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user