Skip to content

Commit

Permalink
cgame: drawpowerup now use fade range
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirak committed Mar 8, 2024
1 parent eaf3ed2 commit 05f6b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/cgame/cg_ents.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,12 @@ static void CG_DrawPowerupAvailable (const centity_t *cent)
shader = cg_items[es->modelindex].icon;
break;
}
alpha = Com_Clamp( 0, 1, cg_drawPowerupAvailableAlpha.value);
alpha = Com_Clamp( 0, 1, cg_drawPowerupAvailableAlpha.value) * 255;
ent.customShader = shader;
ent.shaderRGBA[0] = 255;
ent.shaderRGBA[1] = 255;
ent.shaderRGBA[2] = 255;
ent.shaderRGBA[3] = alpha * 255;
ent.shaderRGBA[3] *= alpha / 255.0f;

ent.origin[2] += cg_drawPowerupAvailableOffset.value;

Expand Down

0 comments on commit 05f6b24

Please sign in to comment.