Skip to content

Commit

Permalink
[rend2] Fix alpha test issue on lighted surfaces with tcMods
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed Jun 12, 2024
1 parent 6029f91 commit 574197f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/rd-rend2/tr_shade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,9 @@ static shaderProgram_t *SelectShaderProgram( int stageIndex, shaderStage_t *stag
{
index |= LIGHTDEF_USE_ALPHA_TEST;
}*/

if (stage->bundle[0].tcGen != TCGEN_TEXTURE || (stage->bundle[0].numTexMods))
index |= LIGHTDEF_USE_TCGEN_AND_TCMOD;

// TODO: remove light vertex def and fix parallax usage on unlit stages like glow stages
if (stage->glslShaderIndex & LIGHTDEF_USE_PARALLAXMAP &&
Expand Down

0 comments on commit 574197f

Please sign in to comment.