Skip to content

Commit

Permalink
Don't draw shadow if viewpoint is too low
Browse files Browse the repository at this point in the history
  • Loading branch information
nashmuhandes authored and Doom2fan committed Jun 10, 2020
1 parent 1f24556 commit c7b68ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rendering/swrenderer/scene/r_opaque_pass.cpp
Expand Up @@ -971,6 +971,7 @@ namespace swrenderer
(
r_actorshadows &&
((thing->flags3 & MF3_ISMONSTER) || thing->IsKindOf(NAME_PlayerPawn) || (thing->flags8 & MF8_CASTSPRITESHADOW)) &&
Thread->Viewport->viewpoint.Pos.Z > (sprite.pos.Z + 11.) &&
!(thing->flags8 & MF8_NOSPRITESHADOW)
);

Expand Down

0 comments on commit c7b68ca

Please sign in to comment.