alpha wip
This commit is contained in:
parent
b9abb429ad
commit
ce44b5b8c4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user