mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
Fixed spotlight to work with the concentration parameter.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user