16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 05:29:17 +02:00

opacity handling hacks

This commit is contained in:
milek7
2022-03-07 20:32:51 +01:00
parent 364d7630c9
commit 520342f6f0
4 changed files with 35 additions and 78 deletions

View File

@@ -443,16 +443,7 @@ float opengl_material::get_or_guess_opacity() const {
return 0.5f;
}
return 0.0f;
}
bool
opengl_material::is_translucent() const {
return (
textures[ 0 ] != null_handle ?
GfxRenderer->Texture( textures[ 0 ] ).has_alpha :
false );
return 0.5f;
}
// create material object from data stored in specified file.