NSRenderableEntity: Render RM_SOLID rendermode ents invisible when m_flRenderAmt is 0.

This commit is contained in:
Marco Cawthorne 2021-10-31 20:07:56 +01:00
parent 908a9fd524
commit 2a23eebc79
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -244,7 +244,7 @@ NSRenderableEntity::RenderFXPass(void)
break;
case RM_SOLID:
colormod = [1,1,1];
alpha = 1.0f;
alpha = (m_flRenderAmt == 0.0) ? 0.0f : 1.0f;
break;
case RM_ADDITIVE:
case RM_ADDFRAC: /* TODO: Figure out what this does differently */