diff options
author | makamys <makamys@outlook.com> | 2021-05-09 09:54:03 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-10 08:53:49 +0200 |
commit | 8cdfb8a318fcaa73ff15852f513224278c15d880 (patch) | |
tree | 101792085f1288ce3a0fd2011c278b2268af5240 /src/main/java | |
parent | 7abd9c3fe4b5054235a30be49bd801ea97bbfccf (diff) | |
download | Neodymium-8cdfb8a318fcaa73ff15852f513224278c15d880.tar.gz Neodymium-8cdfb8a318fcaa73ff15852f513224278c15d880.tar.bz2 Neodymium-8cdfb8a318fcaa73ff15852f513224278c15d880.zip |
Render snow im simple chunk meshes
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java | 9 |
1 files changed, 8 insertions, 1 deletions
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; } } |