Skip to content

Commit

Permalink
Temp fix for leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuu17 committed Jun 15, 2024
1 parent eac05e1 commit 251c7bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SWBF2/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ namespace SWBF2
material->set_texture(godot::BaseMaterial3D::TEXTURE_NORMAL, bumpTexture);
}

// TODO: fix leaves transparency?
if (mainTextureName == "leaves")
material->set_transparency(godot::BaseMaterial3D::TRANSPARENCY_ALPHA_SCISSOR);

if (segment.m_material.m_flags & Native::Material::MATERIAL_TRANSPARENT)
material->set_transparency(godot::BaseMaterial3D::TRANSPARENCY_ALPHA);

Expand Down

0 comments on commit 251c7bd

Please sign in to comment.