remove translucency
This commit is contained in:
parent
259bcab1fd
commit
8678351810
18 changed files with 44 additions and 58 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue