Instead of using GL_NORMALIZE use GL_RESCALE_NORMAL which is faster.

This commit is contained in:
daid committed 2012-09-03 12:06:05 +02:00
1 parent 4d6bc5efae
commit 169d3e15c9
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ def InitGL(window, view3D, zoom):
glLightfv(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
glLightfv(GL_LIGHT1, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
glEnable(GL_NORMALIZE)
glEnable(GL_RESCALE_NORMAL)
glEnable(GL_LIGHTING)
glEnable(GL_LIGHT0)
glEnable(GL_DEPTH_TEST)
-1
View File
@@ -829,7 +829,6 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
glEnable(GL_LIGHTING)
glTranslate(item.centerX, item.centerY, 0)
glPushMatrix()
glEnable(GL_NORMALIZE)
glScalef(item.scale, item.scale, item.scale)
glCallList(item.modelDisplayList)
glPopMatrix()