diff options
author | SmileTheory <SmileTheory@gmail.com> | 2013-01-07 21:29:19 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:35:58 +0000 |
commit | 66bee50f95472349540c31a8ae1a8ea421961641 (patch) | |
tree | 6dabb21e6d36c1c4b6132ab5f3bdfdbecd423f37 /src/rend2/tr_shade.c | |
parent | 29e4986324f270d61c816bd2747b080a3b460700 (diff) |
#5863 - Use proper texture coordinates for alpha tested materials when doing depth prepass.
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]; } } |