diff --git a/code/rend2/tr_shade.c b/code/rend2/tr_shade.c index 6698b41b..5115398e 100644 --- a/code/rend2/tr_shade.c +++ b/code/rend2/tr_shade.c @@ -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]; } }