Skip to content

Commit

Permalink
Fixes bm_max self-lighting blending
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Nov 9, 2022
1 parent ede7a7a commit 77762e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/BulbRenderer/BulbRenderer.gml
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ function BulbRenderer(_ambientColour, _mode, _smooth) constructor
gpu_set_ztestenable(true);
gpu_set_zwriteenable(true);

if (mode == BULB_MODE.HARD_BM_MAX)
if ((mode == BULB_MODE.HARD_BM_MAX) || (mode == BULB_MODE.HARD_BM_MAX_SELFLIGHTING))
{
gpu_set_blendmode(bm_max);
var _resetShader = __shdBulbPremultiplyAlpha;
Expand Down
2 changes: 1 addition & 1 deletion scripts/BulbRendererWithGroups/BulbRendererWithGroups.gml
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ function BulbRendererWithGroups(_ambientColour, _mode, _smooth, _maxGroups) cons
gpu_set_ztestenable(true);
gpu_set_zwriteenable(true);

if (mode == BULB_MODE.HARD_BM_MAX)
if ((mode == BULB_MODE.HARD_BM_MAX) || (mode == BULB_MODE.HARD_BM_MAX_SELFLIGHTING))
{
gpu_set_blendmode(bm_max);
var _resetShader = __shdBulbPremultiplyAlpha;
Expand Down

0 comments on commit 77762e9

Please sign in to comment.