mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix flowing water being always opaque
This commit is contained in:
parent
e4dff41560
commit
9fc78cbece
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue