Set the depth fade render state from sprites

This commit is contained in:
nashmuhandes 2024-09-09 02:53:31 +08:00
commit 166d69164d

View file

@ -130,6 +130,8 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
state.SetRenderStyle(RenderStyle);
state.SetTextureMode(RenderStyle);
state.SetDepthFadeFalloff(actor->DepthFadeFalloff);
if (hw_styleflags == STYLEHW_NoAlphaTest)
{
state.AlphaFunc(Alpha_GEqual, 0.f);
@ -325,6 +327,8 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
state.ClearDepthBias();
}
state.SetDepthFadeFalloff(0.0f);
// [Nash] hitbox debug
if (actor && r_showhitbox)
{