1.21.5 partial
This commit is contained in:
@@ -5,6 +5,7 @@ import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
|
|||||||
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
|
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
|
||||||
import it.unimi.dsi.fastutil.objects.ObjectSet;
|
import it.unimi.dsi.fastutil.objects.ObjectSet;
|
||||||
import me.cortex.voxy.client.core.gl.Capabilities;
|
import me.cortex.voxy.client.core.gl.Capabilities;
|
||||||
|
import me.cortex.voxy.client.core.model.bakery.ModelTextureBakery2;
|
||||||
import me.cortex.voxy.client.core.rendering.util.RawDownloadStream;
|
import me.cortex.voxy.client.core.rendering.util.RawDownloadStream;
|
||||||
import me.cortex.voxy.client.core.rendering.util.UploadStream;
|
import me.cortex.voxy.client.core.rendering.util.UploadStream;
|
||||||
import me.cortex.voxy.common.Logger;
|
import me.cortex.voxy.common.Logger;
|
||||||
@@ -65,7 +66,7 @@ public class ModelFactory {
|
|||||||
|
|
||||||
private final Biome DEFAULT_BIOME = MinecraftClient.getInstance().world.getRegistryManager().getOrThrow(RegistryKeys.BIOME).get(BiomeKeys.PLAINS);
|
private final Biome DEFAULT_BIOME = MinecraftClient.getInstance().world.getRegistryManager().getOrThrow(RegistryKeys.BIOME).get(BiomeKeys.PLAINS);
|
||||||
|
|
||||||
public final ModelTextureBakery bakery;
|
public final ModelTextureBakery2 bakery;
|
||||||
|
|
||||||
|
|
||||||
//Model data might also contain a constant colour if the colour resolver produces a constant colour, this saves space in the
|
//Model data might also contain a constant colour if the colour resolver produces a constant colour, this saves space in the
|
||||||
@@ -122,7 +123,7 @@ public class ModelFactory {
|
|||||||
this.mapper = mapper;
|
this.mapper = mapper;
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
this.downstream = downstream;
|
this.downstream = downstream;
|
||||||
this.bakery = new ModelTextureBakery(MODEL_TEXTURE_SIZE, MODEL_TEXTURE_SIZE);
|
this.bakery = new ModelTextureBakery2(MODEL_TEXTURE_SIZE, MODEL_TEXTURE_SIZE);
|
||||||
|
|
||||||
this.metadataCache = new long[1<<16];
|
this.metadataCache = new long[1<<16];
|
||||||
this.fluidStateLUT = new int[1<<16];
|
this.fluidStateLUT = new int[1<<16];
|
||||||
|
|||||||
Reference in New Issue
Block a user