Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/gltf/enemies/corki.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion config/app.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"start-scene": "menu",
"window": {
"title": "Default Game Window",
"title": "Arena Rush",
"size": {
"width": 1280,
"height": 720
Expand Down
3 changes: 2 additions & 1 deletion src/common/model/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ namespace our {
// albedo texture as it's the only case where it matters
if (material->textureAlbedo) {
aiString alphaMode;
if (mat->Get(AI_MATKEY_GLTF_ALPHAMODE, alphaMode) == AI_SUCCESS) {
if (mat->Get(AI_MATKEY_GLTF_ALPHAMODE, alphaMode) == AI_SUCCESS &&
alphaMode.C_Str() == std::string("MASK")) {
float alphaCutoff = 0.0f;
if (AI_SUCCESS == mat->Get(AI_MATKEY_GLTF_ALPHACUTOFF, alphaCutoff)) {
material->alphaThreshold = alphaCutoff;
Expand Down
Loading