more opengl jsr-231 work

This commit is contained in:
benfry
2006-03-22 23:19:19 +00:00
parent e8d727e5df
commit 8d3fc6fbdf
3 changed files with 28 additions and 8 deletions

View File

@@ -237,16 +237,17 @@ public class PGraphics3 extends PGraphics {
// init lights (in resize() instead of allocate() b/c needed by opengl)
lightType = new int[MAX_LIGHTS];
lightPosition = new float[3][MAX_LIGHTS];
lightDiffuse = new float[3][MAX_LIGHTS];
lightNormal = new float[3][MAX_LIGHTS];
lightSpecular = new float[3][MAX_LIGHTS];
lightPosition = new float[MAX_LIGHTS][3];
lightDiffuse = new float[MAX_LIGHTS][3];
lightNormal = new float[MAX_LIGHTS][3];
lightSpecular = new float[MAX_LIGHTS][3];
lightFalloffConstant = new float[MAX_LIGHTS];
lightFalloffLinear = new float[MAX_LIGHTS];
lightFalloffQuadratic = new float[MAX_LIGHTS];
lightSpotAngle = new float[MAX_LIGHTS];
lightSpotAngleCos = new float[MAX_LIGHTS];
lightSpotConcentration = new float[MAX_LIGHTS];
currentLightSpecular = new float[3];
// reset the cameraMode if PERSPECTIVE or ORTHOGRAPHIC
// will just be ignored if CUSTOM, the user's hosed anyways