mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2025-01-31 04:30:39 +00:00
Exclude alphatest meshes from cel-shading.
This commit is contained in:
parent
f9688191e1
commit
ccfa82d228
1 changed files with 2 additions and 2 deletions
|
@ -306,7 +306,7 @@ void RB_RenderAliasMesh (maliasmodel_t *paliashdr, unsigned meshnum, unsigned sk
|
|||
}
|
||||
|
||||
// cel shading
|
||||
if ( r_celshading->integer && !(thisalpha < 1.0f || skinParms->blend) )
|
||||
if ( r_celshading->integer && !(thisalpha < 1.0f || skinParms->blend || skinParms->alphatest) )
|
||||
{
|
||||
float strength, len;
|
||||
vec3_t offset;
|
||||
|
@ -465,7 +465,7 @@ void R_DrawAliasMeshes (maliasmodel_t *paliashdr, entity_t *e, qboolean lerpOnly
|
|||
// md3 skin scripting
|
||||
|
||||
// is this mesh cel shaded?
|
||||
meshCelShaded = (r_celshading->integer && !(meshalpha < 1.0f || skinParms.blend));
|
||||
meshCelShaded = (r_celshading->integer && !(meshalpha < 1.0f || skinParms.blend || skinParms.alphatest));
|
||||
|
||||
v = mesh.vertexes + e->frame * mesh.num_verts;
|
||||
ov = mesh.vertexes + e->oldframe * mesh.num_verts;
|
||||
|
|
Loading…
Reference in a new issue