diff options
Diffstat (limited to 'src/rend2/tr_shade.c')
-rw-r--r-- | src/rend2/tr_shade.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rend2/tr_shade.c b/src/rend2/tr_shade.c index 6698b41b..5115398e 100644 --- a/src/rend2/tr_shade.c +++ b/src/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]; } } |