Skip to content

Commit

Permalink
lightpreview: Add support for fence textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Jan 2, 2024
1 parent 8ab9960 commit 137aedc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightpreview/glview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,10 @@ void GLView::renderBSP(const QString &file, const mbsp_t &bsp, const bspxentries
alpha_test = true;
}
}
} else if (bsp.loadversion->game->id == GAME_QUAKE) {
if (t.starts_with('{')) {
alpha_test = true;
}
}

material_key k = {.program = program, .texname = t, .opacity = opacity, .alpha_test = alpha_test};
Expand Down

0 comments on commit 137aedc

Please sign in to comment.