Removed dynamic terrain
This commit is contained in:
@@ -51,7 +51,7 @@ public enum CacheLayer{
|
||||
endShader(Shaders.slag);
|
||||
}
|
||||
},
|
||||
space(2){
|
||||
space{
|
||||
@Override
|
||||
public void begin(){
|
||||
beginShader();
|
||||
@@ -62,20 +62,10 @@ public enum CacheLayer{
|
||||
endShader(Shaders.space);
|
||||
}
|
||||
},
|
||||
normal(5),
|
||||
walls(3);
|
||||
normal,
|
||||
walls;
|
||||
|
||||
public static final CacheLayer[] all = values();
|
||||
/** Capacity multiplier. */
|
||||
public final int capacity;
|
||||
|
||||
CacheLayer(){
|
||||
this(3);
|
||||
}
|
||||
|
||||
CacheLayer(int capacity){
|
||||
this.capacity = capacity;
|
||||
}
|
||||
|
||||
public void begin(){
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ public class FloorRenderer implements Disposable{
|
||||
|
||||
/**Queues up a cache change for a tile. Only runs in render loop. */
|
||||
public void recacheTile(Tile tile){
|
||||
recacheSet.add(Point2.pack(tile.x / chunksize, tile.y / chunksize));
|
||||
//currently a no-op
|
||||
//recacheSet.add(Point2.pack(tile.x / chunksize, tile.y / chunksize));
|
||||
}
|
||||
|
||||
public void drawFloor(){
|
||||
@@ -216,7 +217,6 @@ public class FloorRenderer implements Disposable{
|
||||
}
|
||||
|
||||
Core.batch = current;
|
||||
cbatch.reserve(layer.capacity * chunksize * chunksize);
|
||||
chunk[layer.ordinal()] = cbatch.endCache();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user