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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user