Arc compat

This commit is contained in:
Anuken
2020-04-14 20:29:59 -04:00
parent c717084cb9
commit 51226d6c88
7 changed files with 71 additions and 8 deletions

View File

@@ -157,7 +157,7 @@ public class BlockRenderer implements Disposable{
shadows.end();
shadowEvents.clear();
Draw.proj(camera.projection());
Draw.proj(camera);
}
float ww = world.width() * tilesize, wh = world.height() * tilesize;

View File

@@ -119,7 +119,7 @@ public class FloorRenderer implements Disposable{
return;
}
cbatch.setProjection(Core.camera.projection());
cbatch.setProjection(Core.camera.mat);
cbatch.beginDraw();
Gl.enable(Gl.blend);
@@ -185,7 +185,7 @@ public class FloorRenderer implements Disposable{
}
private void cacheChunkLayer(int cx, int cy, Chunk chunk, CacheLayer layer){
SpriteBatch current = Core.batch;
Batch current = Core.batch;
Core.batch = cbatch;
//begin a new cache

View File

@@ -180,7 +180,7 @@ public class MenuRenderer implements Disposable{
Draw.color();
shadows.end();
SpriteBatch prev = Core.batch;
Batch prev = Core.batch;
Core.batch = batch = new CacheBatch(new SpriteCache(width * height * 6, false));
batch.beginCache();
@@ -214,8 +214,8 @@ public class MenuRenderer implements Disposable{
mat.set(Draw.proj());
Draw.flush();
Draw.proj(camera.projection());
batch.setProjection(camera.projection());
Draw.proj(camera);
batch.setProjection(camera.mat);
batch.beginDraw();
batch.drawCache(cacheFloor);
batch.endDraw();