16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

revert, try to maintain compatiblity with weirdness for now...

This commit is contained in:
milek7
2022-03-07 21:02:14 +01:00
parent 063db3d382
commit d2b93f0cbb
3 changed files with 14 additions and 4 deletions

View File

@@ -446,6 +446,15 @@ float opengl_material::get_or_guess_opacity() const {
return 0.5f;
}
bool
opengl_material::is_translucent() const {
return (
textures[ 0 ] != null_handle ?
GfxRenderer->Texture( textures[ 0 ] ).has_alpha :
false );
}
// create material object from data stored in specified file.
// NOTE: the deferred load parameter is passed to textures defined by material, the material itself is always loaded immediately
material_handle