From b4c3fa7239e634fb9ba0ebc141f9ce26b7d33ccb Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 20 Feb 2009 00:28:28 +0000 Subject: [PATCH] fixes bug #958, darker drawing with opengl --- opengl/src/processing/opengl/PGraphicsOpenGL.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opengl/src/processing/opengl/PGraphicsOpenGL.java b/opengl/src/processing/opengl/PGraphicsOpenGL.java index 5164dabd7..7ae74d2c4 100644 --- a/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -1976,6 +1976,7 @@ public class PGraphicsOpenGL extends PGraphics3D { protected void ambientFromCalc() { + super.ambientFromCalc(); calcColorBuffer(); gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT, colorBuffer, 0); } @@ -2003,6 +2004,7 @@ public class PGraphicsOpenGL extends PGraphics3D { protected void specularFromCalc() { + super.specularFromCalc(); calcColorBuffer(); gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_SPECULAR, colorBuffer, 0); } @@ -2036,6 +2038,7 @@ public class PGraphicsOpenGL extends PGraphics3D { protected void emissiveFromCalc() { + super.emissiveFromCalc(); calcColorBuffer(); gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_EMISSION, colorBuffer, 0); }