mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-01 13:29:06 +02:00
Distinguish grass and foliage green in block types
This commit is contained in:
parent
60bff1fb34
commit
4ffa28dd63
6 changed files with 622 additions and 619 deletions
|
@ -41,7 +41,8 @@ public:
|
|||
static const BlockType * lookup(const std::string &name);
|
||||
|
||||
bool opaque;
|
||||
bool green;
|
||||
bool grass;
|
||||
bool foliage;
|
||||
bool blue;
|
||||
struct {
|
||||
uint8_t r, g, b;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -45,7 +45,7 @@ Block::Color Block::getColor() const {
|
|||
g *= heightCoef;
|
||||
b *= heightCoef;
|
||||
|
||||
if (type->green) {
|
||||
if (type->grass || type->foliage) {
|
||||
const Resource::Biome &biomeDef = Resource::BIOMES[biome];
|
||||
|
||||
r *= biomeDef.r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue