From 49c4e3733bdda1f667d12e3945fd1a3825cf3d74 Mon Sep 17 00:00:00 2001 From: juniperoserra Date: Mon, 18 Apr 2005 13:50:31 +0000 Subject: [PATCH] Fixed spotlight to work with the concentration parameter. --- core/PGraphics.java | 3 ++- opengl/PGraphicsGL.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/PGraphics.java b/core/PGraphics.java index 44e35bb2e..328da6192 100644 --- a/core/PGraphics.java +++ b/core/PGraphics.java @@ -2568,7 +2568,8 @@ public class PGraphics extends PImage implements PConstants { public void spotLight(float red, float green, float blue, float x, float y, float z, - float nx, float ny, float nz, float angle) { + float nx, float ny, float nz, + float angle, float concentration) { depthError("spotLight"); } diff --git a/opengl/PGraphicsGL.java b/opengl/PGraphicsGL.java index 37471b799..c600b1232 100644 --- a/opengl/PGraphicsGL.java +++ b/opengl/PGraphicsGL.java @@ -879,8 +879,9 @@ public class PGraphicsGL extends PGraphics3 { public void spotLight(float r, float g, float b, float x, float y, float z, - float nx, float ny, float nz, float angle) { - super.spotLight(r, g, b, x, y, z, nx, ny, nz, angle); + float nx, float ny, float nz, + float angle, float concentration) { + super.spotLight(r, g, b, x, y, z, nx, ny, nz, angle, concentration); //int num = super.internalCreateSpotLight(lr, lg, lb, x, y, z, nx, ny, nz, angle); glLightNoAmbient(lightCount - 1); glLightPosition(lightCount - 1);