mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
add noLights()
This commit is contained in:
@@ -3784,6 +3784,10 @@ public abstract class PGraphics extends PImage implements PConstants {
|
||||
public void lights() {
|
||||
depthError("lights");
|
||||
}
|
||||
|
||||
public void noLights() {
|
||||
depthError("noLights");
|
||||
}
|
||||
|
||||
public void ambientLight(float red, float green, float blue) {
|
||||
depthError("ambientLight");
|
||||
|
||||
@@ -3657,6 +3657,17 @@ public class PGraphics3D extends PGraphics {
|
||||
|
||||
lightingDependsOnVertexPosition = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Turn off all lights.
|
||||
*/
|
||||
public void noLights() {
|
||||
// write any queued geometry, because lighting will be goofed after
|
||||
flush();
|
||||
// set the light count back to zero
|
||||
lightCount = 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
0134 core
|
||||
X add noLights() method
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=666
|
||||
|
||||
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
Reference in New Issue
Block a user