mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-24 03:48:06 +01:00
graph aa
This commit is contained in:
parent
a370518af4
commit
209eed1b66
3 changed files with 9 additions and 6 deletions
|
@ -74,7 +74,7 @@ function Node_Display_Text(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
||||||
UNDO_HOLDING = true;
|
UNDO_HOLDING = true;
|
||||||
} #endregion
|
} #endregion
|
||||||
|
|
||||||
static button_reactive_update = function(key) { #region
|
static button_reactive_update = function() { #region
|
||||||
ml_press = lerp_float(ml_press , 0, 10);
|
ml_press = lerp_float(ml_press , 0, 10);
|
||||||
ml_release = lerp_float(ml_release, 0, 10);
|
ml_release = lerp_float(ml_release, 0, 10);
|
||||||
ml_double = lerp_float(ml_double, 0, 10);
|
ml_double = lerp_float(ml_double, 0, 10);
|
||||||
|
|
|
@ -1256,7 +1256,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
|
||||||
updateColor();
|
updateColor();
|
||||||
} resetDisplay(); #endregion
|
} resetDisplay(); #endregion
|
||||||
|
|
||||||
static updateColor = function(val) { #region
|
static updateColor = function(val = undefined) { #region
|
||||||
INLINE
|
INLINE
|
||||||
|
|
||||||
if(color == -1) {
|
if(color == -1) {
|
||||||
|
|
|
@ -894,7 +894,8 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
|
||||||
printIf(log, $"Draw active: {get_timer() - t}"); t = get_timer();
|
printIf(log, $"Draw active: {get_timer() - t}"); t = get_timer();
|
||||||
|
|
||||||
#region draw connections
|
#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 = surface_verify(connection_surface, w * aa, h * aa);
|
||||||
connection_surface_aa = surface_verify(connection_surface_aa, w, h);
|
connection_surface_aa = surface_verify(connection_surface_aa, w, h);
|
||||||
surface_set_target(connection_surface);
|
surface_set_target(connection_surface);
|
||||||
|
@ -946,11 +947,13 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
|
||||||
|
|
||||||
surface_reset_target();
|
surface_reset_target();
|
||||||
|
|
||||||
|
gpu_set_texfilter(true);
|
||||||
surface_set_shader(connection_surface_aa, sh_downsample);
|
surface_set_shader(connection_surface_aa, sh_downsample);
|
||||||
shader_set_f("down", aa);
|
shader_set_f("down", aa);
|
||||||
shader_set_dim("dimension", connection_surface);
|
shader_set_dim("dimension", connection_surface);
|
||||||
draw_surface(connection_surface, 0, 0);
|
draw_surface(connection_surface, 0, 0);
|
||||||
surface_reset_shader();
|
surface_reset_shader();
|
||||||
|
gpu_set_texfilter(false);
|
||||||
|
|
||||||
BLEND_ALPHA_MULP
|
BLEND_ALPHA_MULP
|
||||||
draw_surface(connection_surface_aa, 0, 0);
|
draw_surface(connection_surface_aa, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue