Fixed spotlight to work with the concentration parameter.

This commit is contained in:
juniperoserra
2005-04-18 13:50:31 +00:00
parent 213f1c92bb
commit b97b2222ce
2 changed files with 5 additions and 3 deletions

View File

@@ -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);