mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Grass rendering behing water fix
This commit is contained in:
parent
805f203f22
commit
ff0e617732
4 changed files with 18 additions and 10 deletions
|
|
@ -9,7 +9,6 @@
|
|||
// All in-game definitions (blocks, items, etc..)
|
||||
void setup_definitions(ContentBuilder* builder) {
|
||||
Block* block = new Block("core:air", "air");
|
||||
block->drawGroup = 1;
|
||||
block->lightPassing = true;
|
||||
block->skyLightPassing = true;
|
||||
block->obstacle = false;
|
||||
|
|
@ -52,7 +51,7 @@ void setup_definitions(ContentBuilder* builder) {
|
|||
builder->add(block);
|
||||
|
||||
block = new Block("base:water", "water");
|
||||
block->drawGroup = 4;
|
||||
block->drawGroup = 3;
|
||||
block->lightPassing = true;
|
||||
block->skyLightPassing = false;
|
||||
block->obstacle = false;
|
||||
|
|
@ -67,7 +66,7 @@ void setup_definitions(ContentBuilder* builder) {
|
|||
builder->add(block);
|
||||
|
||||
block = new Block("base:grass", "grass");
|
||||
block->drawGroup = 5;
|
||||
block->drawGroup = 1;
|
||||
block->lightPassing = true;
|
||||
block->obstacle = false;
|
||||
block->model = BlockModel::xsprite;
|
||||
|
|
@ -75,7 +74,7 @@ void setup_definitions(ContentBuilder* builder) {
|
|||
builder->add(block);
|
||||
|
||||
block = new Block("base:flower", "flower");
|
||||
block->drawGroup = 5;
|
||||
block->drawGroup = 1;
|
||||
block->lightPassing = true;
|
||||
block->obstacle = false;
|
||||
block->model = BlockModel::xsprite;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue