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 4032ba4c94
commit 0a80976feb
4 changed files with 35 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ public class PGraphicsGL extends PGraphics3 {
canvas.setNoAutoRedrawMode(true);
// maybe this will help?
canvas.requestFocus();
//canvas.requestFocus();
// done with this business
displayed = true;
@@ -204,8 +204,8 @@ public class PGraphicsGL extends PGraphics3 {
}
protected void resetLights() {
super.resetLights();
public void clearLights() {
super.clearLights();
for (int i = 0; i < MAX_LIGHTS; i++) {
lightDisable(i);
}