mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-15 12:24:28 +07:00
Updated FBO method names
This commit is contained in:
parent
a1b64900ab
commit
6cc2719ed7
@ -183,7 +183,7 @@ public class Schematics implements Loadable{
|
||||
Tmp.m2.set(Draw.trans());
|
||||
FrameBuffer buffer = new FrameBuffer((schematic.width + padding) * resolution, (schematic.height + padding) * resolution);
|
||||
|
||||
shadowBuffer.beginDraw(Color.clear);
|
||||
shadowBuffer.begin(Color.clear);
|
||||
|
||||
Draw.trans().idt();
|
||||
Draw.proj().setOrtho(0, 0, shadowBuffer.getWidth(), shadowBuffer.getHeight());
|
||||
@ -202,9 +202,9 @@ public class Schematics implements Loadable{
|
||||
}
|
||||
});
|
||||
|
||||
shadowBuffer.endDraw();
|
||||
shadowBuffer.end();
|
||||
|
||||
buffer.beginDraw(Color.clear);
|
||||
buffer.begin(Color.clear);
|
||||
|
||||
Draw.proj().setOrtho(0, buffer.getHeight(), buffer.getWidth(), -buffer.getHeight());
|
||||
|
||||
@ -231,7 +231,7 @@ public class Schematics implements Loadable{
|
||||
Draw.flush();
|
||||
Draw.trans().idt();
|
||||
|
||||
buffer.endDraw();
|
||||
buffer.end();
|
||||
|
||||
Draw.proj(Tmp.m1);
|
||||
Draw.trans(Tmp.m2);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=0cae533620f20846febba83e19f531c337204d44
|
||||
archash=dd0f2c60c53919ce97c987e502acf94af3a9a2b4
|
||||
|
Loading…
Reference in New Issue
Block a user