From 8cdfb8a318fcaa73ff15852f513224278c15d880 Mon Sep 17 00:00:00 2001 From: makamys Date: Sun, 9 May 2021 09:54:03 +0200 Subject: Render snow im simple chunk meshes --- src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java index 598134f..bbe68cb 100644 --- a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java +++ b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java @@ -86,7 +86,14 @@ public class SimpleChunkMesh extends Mesh { } color = (0xFF << 24) | ((color >> 16 & 0xFF) << 0) | ((color >> 8 & 0xFF) << 8) | ((color >> 0 & 0xFF) << 16); - pass1.addCube(worldX, worldY, worldZ, size, size, worldY, icon, color); + if(biome.getFloatTemperature(worldX, y, worldZ) < 0.15f) { + pass1.addCube(worldX, worldY + 0.2f, worldZ, size, size, 1f, Blocks.snow_layer.getIcon(1, 0), Blocks.snow_layer.colorMultiplier(target.worldObj, worldX, y, worldZ)); + pass1.addCube(worldX, worldY - 0.8f, worldZ, size, size, worldY - 0.8f, icon, color); + } else { + pass1.addCube(worldX, worldY, worldZ, size, size, worldY, icon, color); + } + + break; } } -- cgit