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:
11
material.cpp
11
material.cpp
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user