Move depth fade definition to GLDEFS

This commit is contained in:
nashmuhandes 2024-09-09 18:08:10 +08:00 committed by Nash Muhandes
commit 58fecd4b92
10 changed files with 12 additions and 16 deletions

View file

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