Updated FBO method names
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -169,7 +169,7 @@ public class MenuRenderer implements Disposable{
|
||||
|
||||
//draw shadows
|
||||
Draw.proj().setOrtho(0, 0, shadows.getWidth(), shadows.getHeight());
|
||||
shadows.beginDraw(Color.clear);
|
||||
shadows.begin(Color.clear);
|
||||
Draw.color(Color.black);
|
||||
for(int x = 0; x < width; x++){
|
||||
for(int y = 0; y < height; y++){
|
||||
@@ -179,7 +179,7 @@ public class MenuRenderer implements Disposable{
|
||||
}
|
||||
}
|
||||
Draw.color();
|
||||
shadows.endDraw();
|
||||
shadows.end();
|
||||
|
||||
SpriteBatch prev = Core.batch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user