Skip to content

Commit

Permalink
Updated fogball sorting
Browse files Browse the repository at this point in the history
Take sector portals into account.
  • Loading branch information
Boondorl committed Jan 1, 2025
1 parent d3fe5a1 commit 6f425cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_sprites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void HWSprite::Process(HWDrawInfo *di, FRenderState& state, AActor* thing, secto
if (isFogball)
{
Fogball fogball;
fogball.Position = FVector3(thing->Pos());
fogball.Position = FVector3(thing->PosRelative(r_viewpoint.sector));
fogball.Radius = (float)thing->args[3];
fogball.Color = FVector3(powf(thing->args[0] * (1.0f / 255.0f), 2.2), powf(thing->args[1] * (1.0f / 255.0f), 2.2), powf(thing->args[2] * (1.0f / 255.0f), 2.2));
fogball.Fog = (float)thing->Alpha;
Expand Down

0 comments on commit 6f425cf

Please sign in to comment.