Skip to content

Commit

Permalink
vk: sprite: fix fading
Browse files Browse the repository at this point in the history
Fixes #441
  • Loading branch information
w23 committed Sep 14, 2023
1 parent 5767ddb commit 40a79d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref/vk/vk_sprite.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ static qboolean spriteIsOccluded( const cl_entity_t *e, vec3_t origin, float *ps
if( v[1] < g_camera.viewport[1] || v[1] > g_camera.viewport[1] + g_camera.viewport[3] )
return true; // do scissor

*blend = R_SpriteGlowBlend( origin, e->curstate.rendermode, e->curstate.renderfx, pscale );
*blend *= R_SpriteGlowBlend( origin, e->curstate.rendermode, e->curstate.renderfx, pscale );

if( *blend <= 0.01f )
return true; // faded
Expand Down

0 comments on commit 40a79d7

Please sign in to comment.