mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 04:19:19 +02:00
opengl 3.3 renderer integration, minor renderer tweaks
This commit is contained in:
@@ -315,6 +315,15 @@ float opengl_material::get_or_guess_opacity() const {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user