remove translucency
|
@ -170,7 +170,7 @@ public class RenderChunk
|
|||
|
||||
if (block != Blocks.air)
|
||||
{
|
||||
BlockLayer layer = block.hasTransparency() ? (block.getMaterial().isLiquid() ? BlockLayer.TRANSLUCENT : BlockLayer.CUTOUT) : BlockLayer.SOLID;
|
||||
BlockLayer layer = block.hasTransparency() ? BlockLayer.CUTOUT : BlockLayer.SOLID;
|
||||
int idx = layer.ordinal();
|
||||
RenderBuffer worldrenderer = generator.getRegionRenderCacheBuilder().getWorldRendererByLayerId(idx);
|
||||
|
||||
|
|
|
@ -81,7 +81,10 @@ public class TextureWater extends TextureTicked
|
|||
b = (b * (this.color & 0xff)) / 255;
|
||||
a = (a * ((this.color >> 24) & 0xff)) / 255;
|
||||
}
|
||||
textureData[i1] = (a << 24) | (r << 16) | (g << 8) | b;
|
||||
r = (r * a) / 255;
|
||||
g = (g * a) / 255;
|
||||
b = (b * a) / 255;
|
||||
textureData[i1] = 0xff000000 | (r << 16) | (g << 8) | b;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -80,10 +80,13 @@ public class TextureWaterFlow extends TextureTicked
|
|||
g = (g * ((this.color >> 8) & 0xff)) / 255;
|
||||
b = (b * (this.color & 0xff)) / 255;
|
||||
a = (a * ((this.color >> 24) & 0xff)) / 255;
|
||||
}
|
||||
}
|
||||
r = (r * a) / 255;
|
||||
g = (g * a) / 255;
|
||||
b = (b * a) / 255;
|
||||
textureData[(i1 & 0x0f) | ((i1 & 0xf0) * 2)] = textureData[((i1 & 0x0f) + 16) | ((i1 & 0xf0) * 2)] =
|
||||
textureData[(i1 & 0x0f) | (((i1 & 0xf0) + 256) * 2)] = textureData[((i1 & 0x0f) + 16) | (((i1 & 0xf0) + 256) * 2)] =
|
||||
(a << 24) | (r << 16) | (g << 8) | b;
|
||||
0xff000000 | (r << 16) | (g << 8) | b;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 11 KiB |