This commit is contained in:
Tanasart 2023-12-08 11:35:32 +07:00
parent a370518af4
commit 209eed1b66
3 changed files with 9 additions and 6 deletions

View file

@ -74,7 +74,7 @@ function Node_Display_Text(_x, _y, _group = noone) : Node(_x, _y, _group) constr
UNDO_HOLDING = true;
} #endregion
static button_reactive_update = function(key) { #region
static button_reactive_update = function() { #region
ml_press = lerp_float(ml_press , 0, 10);
ml_release = lerp_float(ml_release, 0, 10);
ml_double = lerp_float(ml_double, 0, 10);

View file

@ -1256,7 +1256,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
updateColor();
} resetDisplay(); #endregion
static updateColor = function(val) { #region
static updateColor = function(val = undefined) { #region
INLINE
if(color == -1) {

View file

@ -894,7 +894,8 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
printIf(log, $"Draw active: {get_timer() - t}"); t = get_timer();
#region draw connections
var aa = min(8192 / w, 8192 / h, PREFERENCES.connection_line_aa);
var aa = floor(min(8192 / w, 8192 / h, PREFERENCES.connection_line_aa));
connection_surface = surface_verify(connection_surface, w * aa, h * aa);
connection_surface_aa = surface_verify(connection_surface_aa, w, h);
surface_set_target(connection_surface);
@ -945,17 +946,19 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
}
surface_reset_target();
gpu_set_texfilter(true);
surface_set_shader(connection_surface_aa, sh_downsample);
shader_set_f("down", aa);
shader_set_dim("dimension", connection_surface);
draw_surface(connection_surface, 0, 0);
surface_reset_shader();
gpu_set_texfilter(false);
BLEND_ALPHA_MULP
draw_surface(connection_surface_aa, 0, 0);
BLEND_NORMAL
junction_hovering = (node_hovering == noone && !is_struct(node_hovering))? hov : noone;
value_focus = noone;
#endregion