From 1f48eefff54904b279cb86daba02141ece6988d5 Mon Sep 17 00:00:00 2001 From: Tanasart Date: Mon, 10 Jun 2024 11:09:46 +0700 Subject: [PATCH] New Pixel Sampler node. --- scripts/node_flow_noise/node_flow_noise.gml | 2 +- scripts/node_pixel_sampler/node_pixel_sampler.gml | 2 +- scripts/node_registry/node_registry.gml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/node_flow_noise/node_flow_noise.gml b/scripts/node_flow_noise/node_flow_noise.gml index c656a6eab..869defb44 100644 --- a/scripts/node_flow_noise/node_flow_noise.gml +++ b/scripts/node_flow_noise/node_flow_noise.gml @@ -15,7 +15,7 @@ function Node_Flow_Noise(_x, _y, _group = noone) : Node_Shader_Generator(_x, _y, addShaderProp(SHADER_UNIFORM.float, "progress"); inputs[| 4] = nodeValue("Detail", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, [ 1, 8 ]) - .setDisplay(VALUE_DISPLAY.slider_range, { range: [ 1, 16, 1 ] }); + .setDisplay(VALUE_DISPLAY.slider_range, { range: [ 1, 16, 0.1 ] }); addShaderProp(SHADER_UNIFORM.float, "detail"); inputs[| 5] = nodeValue("Rotation", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0) diff --git a/scripts/node_pixel_sampler/node_pixel_sampler.gml b/scripts/node_pixel_sampler/node_pixel_sampler.gml index c962637dd..e83eb1417 100644 --- a/scripts/node_pixel_sampler/node_pixel_sampler.gml +++ b/scripts/node_pixel_sampler/node_pixel_sampler.gml @@ -7,7 +7,7 @@ function Node_Pixel_Sampler(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr .setDisplay(VALUE_DISPLAY.enum_button, [ "Keep Size", "Expand" ]); inputs[| 2] = nodeValue("Match Mode", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0 ) - .setDisplay(VALUE_DISPLAY.enum_button, [ "Brightness", "RGB Match", "Hue Match" ]); + .setDisplay(VALUE_DISPLAY.enum_button, [ "Brightness", "RGB", "Hue" ]); inputs[| 3] = nodeValue("Surfaces", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, [ noone ] ) .setArrayDepth(1); diff --git a/scripts/node_registry/node_registry.gml b/scripts/node_registry/node_registry.gml index 807b2a211..2d485fe20 100644 --- a/scripts/node_registry/node_registry.gml +++ b/scripts/node_registry/node_registry.gml @@ -737,7 +737,7 @@ function __initNodes() { addNodeObject(generator, "Herringbone Tile", s_node_herringbone_tile, "Node_Herringbone_Tile", [1, Node_Herringbone_Tile],, "Generate Herringbone tile pattern.").patreonExtra(); addNodeObject(generator, "Random Tile", s_node_random_tile, "Node_Random_Tile", [1, Node_Random_Tile],, "Generate Random tile pattern.").patreonExtra(); addNodeObject(generator, "Quasicrystal", s_node_quasicircle, "Node_Quasicrystal", [1, Node_Quasicrystal]).setVersion(11660); - addNodeObject(generator, "Pixel Sampler", s_node_quasicircle, "Node_Pixel_Sampler", [1, Node_Pixel_Sampler]).setVersion(11730); + addNodeObject(generator, "Pixel Sampler", s_node_pixel_sampler, "Node_Pixel_Sampler", [1, Node_Pixel_Sampler]).setVersion(11730); ds_list_add(generator, "Populate"); addNodeObject(generator, "Repeat", s_node_repeat, "Node_Repeat", [1, Node_Repeat],, "Repeat image multiple times linearly, or in grid pattern.").setVersion(1100);