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:
juniperoserra
2005-04-06 21:29:28 +00:00
parent e4c50aa331
commit e2a4589f8d
4 changed files with 35 additions and 12 deletions

View File

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