mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix flowing water being always opaque
This commit is contained in:
parent
e4dff41560
commit
9fc78cbece
@ -645,7 +645,7 @@ void the_game(
|
||||
IWritableNodeDefManager *nodedef = createNodeDefManager();
|
||||
|
||||
// Fill node feature table with default definitions
|
||||
content_mapnode_init(nodedef);
|
||||
//content_mapnode_init(nodedef);
|
||||
|
||||
/*
|
||||
Create server.
|
||||
|
@ -445,6 +445,9 @@ public:
|
||||
f->special_materials[j]->setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||
f->special_materials[j]->setFlag(video::EMF_FOG_ENABLE, true);
|
||||
f->special_materials[j]->setTexture(0, f->special_aps[j]->atlas);
|
||||
if(f->alpha != 255)
|
||||
f->special_materials[j]->MaterialType =
|
||||
video::EMT_TRANSPARENT_VERTEX_ALPHA;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -245,11 +245,11 @@ struct ContentFeatures
|
||||
|
||||
void setTexture(u16 i, std::string name);
|
||||
|
||||
void setAllTextures(std::string name, u8 alpha=255)
|
||||
void setAllTextures(std::string name, u8 alpha_=255)
|
||||
{
|
||||
for(u16 i=0; i<6; i++)
|
||||
setTexture(i, name);
|
||||
alpha = alpha;
|
||||
alpha = alpha_;
|
||||
// Force inventory texture too
|
||||
setInventoryTexture(name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user