alpha wip

This commit is contained in:
NatureFreshMilk 2019-02-27 16:33:37 +01:00
parent b9abb429ad
commit ce44b5b8c4

View File

@ -211,8 +211,12 @@ func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRG
imgX+IMG_SCALE, imgY+IMG_SCALE,
)
if c.A != 0xFF {
//not transparent, mark as rendered
foundBlocks++
xzOccupationMap[x][z] = true
}
draw.Draw(img, rect, &image.Uniform{c}, image.ZP, draw.Src)
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {