More branch merging

This commit is contained in:
Anuken
2021-10-14 20:58:03 -04:00
parent ad1c75d050
commit 6b59c1cd83
108 changed files with 1018 additions and 380 deletions

View File

@@ -191,7 +191,10 @@ public class LightRenderer{
Draw.color();
buffer.begin(Color.clear);
Draw.sort(false);
Gl.blendEquationSeparate(Gl.funcAdd, Gl.max);
//apparently necessary
Blending.normal.apply();
for(Runnable run : lights){
run.run();
@@ -202,6 +205,7 @@ public class LightRenderer{
Draw.rect(circleRegion, cir.x, cir.y, cir.radius * 2, cir.radius * 2);
}
Draw.reset();
Draw.sort(true);
buffer.end();
Gl.blendEquationSeparate(Gl.funcAdd, Gl.funcAdd);