Skip to content

Commit

Permalink
Disable cel-shading on transparent models.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Jan 25, 2013
1 parent 00d290e commit bde26bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/gl/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static void setup_celshading(void)
if (value == 0)
return;

if (glr.ent->flags & RF_SHELL_MASK)
if (glr.ent->flags & (RF_TRANSLUCENT | RF_SHELL_MASK))
return;

VectorSubtract(origin, glr.fd.vieworg, dir);
Expand Down

0 comments on commit bde26bb

Please sign in to comment.