Skip to content

Commit

Permalink
Models|Fixed: Incorrect submodel alpha value
Browse files Browse the repository at this point in the history
It appears the submodel alpha is stored as a byte, but the
model setup was assuming a float value.

Fixes the problem of, e.g., missing barrel slime with jDRP.
  • Loading branch information
skyjake committed Mar 14, 2012
1 parent ddf3efe commit 3fa3084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/r_model.c
Expand Up @@ -1042,11 +1042,11 @@ static void setupModel(ded_model_t* def)
}
else if(sub->flags & MFF_SHADOW2)
{
sub->alpha = .2f;
sub->alpha = (byte)(256 * .2f);
}
else if(sub->flags & MFF_SHADOW1)
{
sub->alpha = .62f;
sub->alpha = (byte)(256 * .62f);
}

// Extra blendmodes:
Expand Down

0 comments on commit 3fa3084

Please sign in to comment.