#5863 - Use proper texture coordinates for alpha tested materials when doing depth prepass.

This commit is contained in:
SmileTheory 2013-01-07 21:29:19 -08:00
parent af77b93597
commit 3d311bdbe3
1 changed files with 10 additions and 0 deletions

View File

@ -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];
}
}