[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.253, 1.254
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-10-24 07:45:13
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2456/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Turned off two sided lighting as it aint used, and removed setting that only consern specular light which we dont use (GL_LIGHT_MODEL_LOCAL_VIEWER) Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.253 retrieving revision 1.254 diff -C2 -d -r1.253 -r1.254 *** View.java 16 Oct 2007 11:02:53 -0000 1.253 --- View.java 24 Oct 2007 07:45:10 -0000 1.254 *************** *** 508,513 **** gl.glEnable(GL.GL_LIGHT0); ! gl.glLightModeli(GL.GL_LIGHT_MODEL_TWO_SIDE, 1); ! gl.glLightModeli(GL.GL_LIGHT_MODEL_LOCAL_VIEWER, 1); gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, new float[] {0.3f, 0.3f, 0.3f, 1.0f}, 0); gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, new float[] {0.7f, 0.7f, 0.7f, 1.0f}, 0); --- 508,513 ---- gl.glEnable(GL.GL_LIGHT0); ! //Tell if both sides of the model should be lighted ! gl.glLightModeli(GL.GL_LIGHT_MODEL_TWO_SIDE, 0); gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, new float[] {0.3f, 0.3f, 0.3f, 1.0f}, 0); gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, new float[] {0.7f, 0.7f, 0.7f, 1.0f}, 0); |