mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
Make light layer darker
This commit is contained in:
parent
02808dcf9b
commit
fb81ea7d60
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ static void addChunk(uint32_t image[DIM*DIM], uint8_t lightmap[2*DIM*DIM], size_
|
|||
const World::Block &block = layer.blocks[x][z];
|
||||
|
||||
image[i] = htonl(block.getColor());
|
||||
lightmap[2*i+1] = (1 - block.getBlockLight()/15.f)*128;
|
||||
lightmap[2*i+1] = (1 - block.getBlockLight()/15.f)*192;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue