From 3cd10e6f084fb2a3abbc4d9ddb5977a9e984bd0e Mon Sep 17 00:00:00 2001 From: Tanasart Date: Fri, 19 Jul 2024 14:36:59 +0700 Subject: [PATCH] - [Scatter] Fix maximum blend mode not actually returns maximum color. --- scripts/node_scatter/node_scatter.gml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/node_scatter/node_scatter.gml b/scripts/node_scatter/node_scatter.gml index 48de4bc5e..5e6845037 100644 --- a/scripts/node_scatter/node_scatter.gml +++ b/scripts/node_scatter/node_scatter.gml @@ -382,7 +382,10 @@ function Node_Scatter(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c break; case 1 : BLEND_ADD; break; - case 2 : gpu_set_blendmode(bm_max); break; + case 2 : + BLEND_ALPHA_MULP + gpu_set_blendequation(bm_eq_max); + break; } var positions = array_create(_amount); @@ -654,6 +657,7 @@ function Node_Scatter(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c } BLEND_NORMAL + gpu_set_blendequation(bm_eq_add); gpu_set_tex_filter(false); surface_reset_target();