Set the depth fade render state from sprites
This commit is contained in:
parent
8f9cc1bc65
commit
166d69164d
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue