mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
reset light count in lights()
This commit is contained in:
@@ -4743,6 +4743,9 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
public void lights() {
|
||||
enableLighting();
|
||||
|
||||
// reset number of lights
|
||||
lightCount = 0;
|
||||
|
||||
// need to make sure colorMode is RGB 255 here
|
||||
int colorModeSaved = colorMode;
|
||||
colorMode = RGB;
|
||||
|
||||
Reference in New Issue
Block a user