mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
Lights() now sets up default lighting, which is a slight ambient light and a medium directional light pointing down the Z axis.
This commit is contained in:
@@ -5683,6 +5683,18 @@ v PApplet.this.stop();
|
||||
}
|
||||
|
||||
|
||||
public void clearLights() {
|
||||
if (recorder != null) recorder.clearLights();
|
||||
g.clearLights();
|
||||
}
|
||||
|
||||
|
||||
public void defaultLights() {
|
||||
if (recorder != null) recorder.defaultLights();
|
||||
g.defaultLights();
|
||||
}
|
||||
|
||||
|
||||
public void light(int num, float x, float y, float z,
|
||||
float red, float green, float blue) {
|
||||
if (recorder != null) recorder.light(num, x, y, z, red, green, blue);
|
||||
|
||||
Reference in New Issue
Block a user