summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rend2/tr_shade.c10
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];
}
}