Skip to content

Commit

Permalink
fix PHOT/PLSM not following the correct heat scale, fixes #336
Browse files Browse the repository at this point in the history
Still many issues if you manually add on other effects to heat mode, but at least now the default graphics are fine
  • Loading branch information
jacob1 committed May 10, 2017
1 parent ec41709 commit f54189a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graphics/Renderer.cpp
Expand Up @@ -1367,6 +1367,8 @@ void Renderer::render_parts()
cola = 255;
if(pixel_mode & (FIREMODE | PMODE_GLOW))
pixel_mode = (pixel_mode & ~(FIREMODE|PMODE_GLOW)) | PMODE_BLUR;
else if ((pixel_mode & (PMODE_BLEND | PMODE_ADD)) == (PMODE_BLEND | PMODE_ADD))
pixel_mode = (pixel_mode & ~(PMODE_BLEND|PMODE_ADD)) | PMODE_FLAT;
else if (!pixel_mode)
pixel_mode |= PMODE_FLAT;
}
Expand All @@ -1381,6 +1383,8 @@ void Renderer::render_parts()
cola = 255;
if(pixel_mode & (FIREMODE | PMODE_GLOW))
pixel_mode = (pixel_mode & ~(FIREMODE|PMODE_GLOW)) | PMODE_BLUR;
else if ((pixel_mode & (PMODE_BLEND | PMODE_ADD)) == (PMODE_BLEND | PMODE_ADD))
pixel_mode = (pixel_mode & ~(PMODE_BLEND|PMODE_ADD)) | PMODE_FLAT;
else if (!pixel_mode)
pixel_mode |= PMODE_FLAT;
}
Expand Down

0 comments on commit f54189a

Please sign in to comment.