Skip to content

Commit

Permalink
- use a more consistent setting for rendering fuzzy sprites with enha…
Browse files Browse the repository at this point in the history
…nced nightvision on.
  • Loading branch information
coelckers committed Jan 28, 2018
1 parent 55c6a14 commit 64921ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gl/scene/gl_sprite.cpp
Expand Up @@ -987,9 +987,8 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
RenderStyle.CheckFuzz();
if (RenderStyle.BlendOp == STYLEOP_Fuzz)
{
if (gl_fuzztype != 0 && !gl.legacyMode)
if (gl_fuzztype != 0 && !gl.legacyMode && !(RenderStyle.Flags & STYLEF_InvertSource))
{
// Todo: implement shader selection here
RenderStyle = LegacyRenderStyles[STYLE_Translucent];
OverrideShader = gl_fuzztype + 4;
trans = 0.99f; // trans may not be 1 here
Expand Down

0 comments on commit 64921ea

Please sign in to comment.