mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +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;
|
index |= LIGHTDEF_ENTITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pStage->stateBits & GLS_ATEST_BITS)
|
||||||
|
{
|
||||||
|
index |= LIGHTDEF_USE_TCGEN_AND_TCMOD;
|
||||||
|
}
|
||||||
|
|
||||||
sp = &pStage->glslShaderGroup[index];
|
sp = &pStage->glslShaderGroup[index];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1307,6 +1312,11 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
||||||
shaderAttribs |= GENERICDEF_USE_VERTEX_ANIMATION;
|
shaderAttribs |= GENERICDEF_USE_VERTEX_ANIMATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pStage->stateBits & GLS_ATEST_BITS)
|
||||||
|
{
|
||||||
|
shaderAttribs |= GENERICDEF_USE_TCGEN_AND_TCMOD;
|
||||||
|
}
|
||||||
|
|
||||||
sp = &tr.genericShader[shaderAttribs];
|
sp = &tr.genericShader[shaderAttribs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue