This commit is contained in:
Anuken
2020-03-25 00:18:40 -04:00
parent 7d5ceafff2
commit 4fb74d1e39
5 changed files with 30 additions and 29 deletions

View File

@@ -183,14 +183,14 @@ public class LightRenderer{
}
Draw.color();
buffer.beginDraw(Color.clear);
buffer.begin(Color.clear);
Gl.blendEquationSeparate(Gl.funcAdd, Gl.max);
for(Runnable run : lights){
run.run();
}
Draw.reset();
buffer.endDraw();
buffer.end();
Gl.blendEquationSeparate(Gl.funcAdd, Gl.funcAdd);
Draw.color();