mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 22:11:18 +00:00
#5863 - Use proper texture coordinates for alpha tested materials when doing depth prepass.
This commit is contained in:
parent
af77b93597
commit
3d311bdbe3
1 changed files with 10 additions and 0 deletions
|
@ -1291,6 +1291,11 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
|||
index |= LIGHTDEF_ENTITY;
|
||||
}
|
||||
|
||||
if (pStage->stateBits & GLS_ATEST_BITS)
|
||||
{
|
||||
index |= LIGHTDEF_USE_TCGEN_AND_TCMOD;
|
||||
}
|
||||
|
||||
sp = &pStage->glslShaderGroup[index];
|
||||
}
|
||||
else
|
||||
|
@ -1307,6 +1312,11 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
|||
shaderAttribs |= GENERICDEF_USE_VERTEX_ANIMATION;
|
||||
}
|
||||
|
||||
if (pStage->stateBits & GLS_ATEST_BITS)
|
||||
{
|
||||
shaderAttribs |= GENERICDEF_USE_TCGEN_AND_TCMOD;
|
||||
}
|
||||
|
||||
sp = &tr.genericShader[shaderAttribs];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue