mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
- [Scatter] Fix maximum blend mode not actually returns maximum color.
This commit is contained in:
parent
74224e323a
commit
3cd10e6f08
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue