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 8ccdc128a3
commit 87ee7df1a6
4 changed files with 35 additions and 12 deletions

View File

@@ -2072,6 +2072,14 @@ public class PGraphics extends PImage implements PConstants {
throw new RuntimeException("noLights() can only be used with depth()");
}
public void clearLights() {
throw new RuntimeException("clearLights() can only be used with depth()");
}
public void defaultLights() {
throw new RuntimeException("defaultLights() can only be used with depth()");
}
public void light(int num, float x, float y, float z,
float red, float green, float blue) {
throw new RuntimeException("light() can only be used with depth()");