[Inspector Panel] Fix vec2 widget show incorrect value when connected.

This commit is contained in:
Tanasart 2024-12-30 13:09:13 +07:00
parent 88cb50102d
commit dc2badae83
35 changed files with 902 additions and 709 deletions

View file

@ -217,19 +217,19 @@
{"name":"blinker","order":2,"path":"folders/shader/generator/blinker.yy",},
{"name":"cell","order":3,"path":"folders/shader/generator/cell.yy",},
{"name":"grid","order":1,"path":"folders/shader/generator/grid.yy",},
{"name":"random_shape","order":4,"path":"folders/shader/generator/random_shape.yy",},
{"name":"reaction_diffusion","order":5,"path":"folders/shader/generator/reaction_diffusion.yy",},
{"name":"region","order":6,"path":"folders/shader/generator/region.yy",},
{"name":"sky model","order":9,"path":"folders/shader/generator/sky model.yy",},
{"name":"texture repeat","order":8,"path":"folders/shader/generator/texture repeat.yy",},
{"name":"vector_mapper","order":7,"path":"folders/shader/generator/vector_mapper.yy",},
{"name":"random_shape","order":5,"path":"folders/shader/generator/random_shape.yy",},
{"name":"reaction_diffusion","order":6,"path":"folders/shader/generator/reaction_diffusion.yy",},
{"name":"region","order":7,"path":"folders/shader/generator/region.yy",},
{"name":"sky model","order":10,"path":"folders/shader/generator/sky model.yy",},
{"name":"texture repeat","order":9,"path":"folders/shader/generator/texture repeat.yy",},
{"name":"vector_mapper","order":8,"path":"folders/shader/generator/vector_mapper.yy",},
{"name":"mask","order":10,"path":"folders/shader/mask.yy",},
{"name":"misc","order":11,"path":"folders/shader/misc.yy",},
{"name":"MK effects","order":12,"path":"folders/shader/MK effects.yy",},
{"name":"Fracture","order":2,"path":"folders/shader/MK effects/Fracture.yy",},
{"name":"Subpixel","order":3,"path":"folders/shader/MK effects/Subpixel.yy",},
{"name":"Tile","order":1,"path":"folders/shader/MK effects/Tile.yy",},
{"name":"noise","order":19,"path":"folders/shader/noise.yy",},
{"name":"noise","order":4,"path":"folders/shader/generator/noise.yy",},
{"name":"pixel_builder","order":13,"path":"folders/shader/pixel_builder.yy",},
{"name":"ray march","order":17,"path":"folders/shader/ray march.yy",},
{"name":"sprites","order":14,"path":"folders/shader/sprites.yy",},
@ -845,18 +845,18 @@
{"name":"node_FLIP_wall","order":9,"path":"scripts/node_FLIP_wall/node_FLIP_wall.yy",},
{"name":"node_flip","order":13,"path":"scripts/node_flip/node_flip.yy",},
{"name":"node_flood_fill","order":3,"path":"scripts/node_flood_fill/node_flood_fill.yy",},
{"name":"node_flow_noise","order":18,"path":"scripts/node_flow_noise/node_flow_noise.yy",},
{"name":"node_flow_noise","order":19,"path":"scripts/node_flow_noise/node_flow_noise.yy",},
{"name":"node_fn_constant","order":3,"path":"scripts/node_fn_constant/node_fn_constant.yy",},
{"name":"node_fn_ease","order":5,"path":"scripts/node_fn_ease/node_fn_ease.yy",},
{"name":"node_fn_math","order":6,"path":"scripts/node_fn_math/node_fn_math.yy",},
{"name":"node_fn_smoothstep","order":4,"path":"scripts/node_fn_smoothstep/node_fn_smoothstep.yy",},
{"name":"node_fn_wave_table","order":1,"path":"scripts/node_fn_wave_table/node_fn_wave_table.yy",},
{"name":"node_fn","order":2,"path":"scripts/node_fn/node_fn.yy",},
{"name":"node_fold_noise","order":14,"path":"scripts/node_fold_noise/node_fold_noise.yy",},
{"name":"node_fold_noise","order":15,"path":"scripts/node_fold_noise/node_fold_noise.yy",},
{"name":"node_frame","order":3,"path":"scripts/node_frame/node_frame.yy",},
{"name":"node_functions","order":2,"path":"scripts/node_functions/node_functions.yy",},
{"name":"node_FXAA","order":11,"path":"scripts/node_FXAA/node_FXAA.yy",},
{"name":"node_gabor_noise","order":11,"path":"scripts/node_gabor_noise/node_gabor_noise.yy",},
{"name":"node_gabor_noise","order":12,"path":"scripts/node_gabor_noise/node_gabor_noise.yy",},
{"name":"node_gamma_map","order":15,"path":"scripts/node_gamma_map/node_gamma_map.yy",},
{"name":"node_global","order":3,"path":"scripts/node_global/node_global.yy",},
{"name":"node_glow","order":11,"path":"scripts/node_glow/node_glow.yy",},
@ -885,7 +885,7 @@
{"name":"node_herringbone_tile","order":7,"path":"scripts/node_herringbone_tile/node_herringbone_tile.yy",},
{"name":"node_high_pass","order":14,"path":"scripts/node_high_pass/node_high_pass.yy",},
{"name":"node_hlsl","order":13,"path":"scripts/node_hlsl/node_hlsl.yy",},
{"name":"node_honey_noise","order":20,"path":"scripts/node_honey_noise/node_honey_noise.yy",},
{"name":"node_honey_noise","order":21,"path":"scripts/node_honey_noise/node_honey_noise.yy",},
{"name":"node_hsv_channel","order":1,"path":"scripts/node_hsv_channel/node_hsv_channel.yy",},
{"name":"node_http_request","order":27,"path":"scripts/node_http_request/node_http_request.yy",},
{"name":"node_image_animated","order":1,"path":"scripts/node_image_animated/node_image_animated.yy",},
@ -958,12 +958,13 @@
{"name":"node_morph_surface","order":5,"path":"scripts/node_morph_surface/node_morph_surface.yy",},
{"name":"node_move_point","order":9,"path":"scripts/node_move_point/node_move_point.yy",},
{"name":"node_noise_aniso","order":1,"path":"scripts/node_noise_aniso/node_noise_aniso.yy",},
{"name":"node_noise_bubble","order":17,"path":"scripts/node_noise_bubble/node_noise_bubble.yy",},
{"name":"node_noise_cristal","order":19,"path":"scripts/node_noise_cristal/node_noise_cristal.yy",},
{"name":"node_noise_blue","order":8,"path":"scripts/node_noise_blue/node_noise_blue.yy",},
{"name":"node_noise_bubble","order":18,"path":"scripts/node_noise_bubble/node_noise_bubble.yy",},
{"name":"node_noise_cristal","order":20,"path":"scripts/node_noise_cristal/node_noise_cristal.yy",},
{"name":"node_noise_fbm","order":3,"path":"scripts/node_noise_fbm/node_noise_fbm.yy",},
{"name":"node_noise_hex","order":5,"path":"scripts/node_noise_hex/node_noise_hex.yy",},
{"name":"node_noise_simplex","order":7,"path":"scripts/node_noise_simplex/node_noise_simplex.yy",},
{"name":"node_noise_strand","order":15,"path":"scripts/node_noise_strand/node_noise_strand.yy",},
{"name":"node_noise_strand","order":16,"path":"scripts/node_noise_strand/node_noise_strand.yy",},
{"name":"node_noise_tri","order":6,"path":"scripts/node_noise_tri/node_noise_tri.yy",},
{"name":"node_normal_light","order":2,"path":"scripts/node_normal_light/node_normal_light.yy",},
{"name":"node_normal","order":1,"path":"scripts/node_normal/node_normal.yy",},
@ -1045,9 +1046,9 @@
{"name":"node_PCX_fn_surface_width","order":1,"path":"scripts/node_PCX_fn_surface_width/node_PCX_fn_surface_width.yy",},
{"name":"node_PCX_fn_var","order":1,"path":"scripts/node_PCX_fn_var/node_PCX_fn_var.yy",},
{"name":"node_PCX_var","order":6,"path":"scripts/node_PCX_var/node_PCX_var.yy",},
{"name":"node_perlin_extra","order":10,"path":"scripts/node_perlin_extra/node_perlin_extra.yy",},
{"name":"node_perlin_smear","order":9,"path":"scripts/node_perlin_smear/node_perlin_smear.yy",},
{"name":"node_perlin","order":8,"path":"scripts/node_perlin/node_perlin.yy",},
{"name":"node_perlin_extra","order":11,"path":"scripts/node_perlin_extra/node_perlin_extra.yy",},
{"name":"node_perlin_smear","order":10,"path":"scripts/node_perlin_smear/node_perlin_smear.yy",},
{"name":"node_perlin","order":9,"path":"scripts/node_perlin/node_perlin.yy",},
{"name":"node_pin","order":4,"path":"scripts/node_pin/node_pin.yy",},
{"name":"node_pixel_builder","order":4,"path":"scripts/node_pixel_builder/node_pixel_builder.yy",},
{"name":"node_pixel_cloud","order":21,"path":"scripts/node_pixel_cloud/node_pixel_cloud.yy",},
@ -1104,7 +1105,7 @@
{"name":"node_shape_map","order":7,"path":"scripts/node_shape_map/node_shape_map.yy",},
{"name":"node_shape_polygon","order":6,"path":"scripts/node_shape_polygon/node_shape_polygon.yy",},
{"name":"node_shape","order":8,"path":"scripts/node_shape/node_shape.yy",},
{"name":"node_shard_noise","order":12,"path":"scripts/node_shard_noise/node_shard_noise.yy",},
{"name":"node_shard_noise","order":13,"path":"scripts/node_shard_noise/node_shard_noise.yy",},
{"name":"node_shell","order":15,"path":"scripts/node_shell/node_shell.yy",},
{"name":"node_shuffle","order":28,"path":"scripts/node_shuffle/node_shuffle.yy",},
{"name":"node_skew","order":11,"path":"scripts/node_skew/node_skew.yy",},
@ -1258,11 +1259,11 @@
{"name":"node_VFX_vortex","order":6,"path":"scripts/node_VFX_vortex/node_VFX_vortex.yy",},
{"name":"node_VFX_wind","order":7,"path":"scripts/node_VFX_wind/node_VFX_wind.yy",},
{"name":"node_vignette","order":18,"path":"scripts/node_vignette/node_vignette.yy",},
{"name":"node_voronoi_extra","order":16,"path":"scripts/node_voronoi_extra/node_voronoi_extra.yy",},
{"name":"node_voronoi_extra","order":17,"path":"scripts/node_voronoi_extra/node_voronoi_extra.yy",},
{"name":"node_warp","order":2,"path":"scripts/node_warp/node_warp.yy",},
{"name":"node_wav_file_read","order":11,"path":"scripts/node_wav_file_read/node_wav_file_read.yy",},
{"name":"node_wav_file_write","order":12,"path":"scripts/node_wav_file_write/node_wav_file_write.yy",},
{"name":"node_wavelet_noise","order":13,"path":"scripts/node_wavelet_noise/node_wavelet_noise.yy",},
{"name":"node_wavelet_noise","order":14,"path":"scripts/node_wavelet_noise/node_wavelet_noise.yy",},
{"name":"node_websocket_sender","order":1,"path":"scripts/node_websocket_sender/node_websocket_sender.yy",},
{"name":"node_widget_test","order":16,"path":"scripts/node_widget_test/node_widget_test.yy",},
{"name":"node_wrap_area","order":10,"path":"scripts/node_wrap_area/node_wrap_area.yy",},
@ -1421,14 +1422,14 @@
{"name":"window_functions","order":2,"path":"scripts/window_functions/window_functions.yy",},
{"name":"winwin_extras","order":6,"path":"scripts/winwin_extras/winwin_extras.yy",},
{"name":"winwin_utils","order":7,"path":"scripts/winwin_utils/winwin_utils.yy",},
{"name":"sh_2d_light_apply","order":31,"path":"shaders/sh_2d_light_apply/sh_2d_light_apply.yy",},
{"name":"sh_2d_light","order":20,"path":"shaders/sh_2d_light/sh_2d_light.yy",},
{"name":"sh_2d_light_apply","order":32,"path":"shaders/sh_2d_light_apply/sh_2d_light_apply.yy",},
{"name":"sh_2d_light","order":21,"path":"shaders/sh_2d_light/sh_2d_light.yy",},
{"name":"sh_3d_depth","order":6,"path":"shaders/sh_3d_depth/sh_3d_depth.yy",},
{"name":"sh_3d_extrude_corner","order":7,"path":"shaders/sh_3d_extrude_corner/sh_3d_extrude_corner.yy",},
{"name":"sh_3d_extrude_filler_depth","order":9,"path":"shaders/sh_3d_extrude_filler_depth/sh_3d_extrude_filler_depth.yy",},
{"name":"sh_3d_extrude_filler","order":8,"path":"shaders/sh_3d_extrude_filler/sh_3d_extrude_filler.yy",},
{"name":"sh_ace","order":22,"path":"shaders/sh_ace/sh_ace.yy",},
{"name":"sh_active_canvas_ink","order":23,"path":"shaders/sh_active_canvas_ink/sh_active_canvas_ink.yy",},
{"name":"sh_active_canvas_ink","order":24,"path":"shaders/sh_active_canvas_ink/sh_active_canvas_ink.yy",},
{"name":"sh_alpha_grey","order":1,"path":"shaders/sh_alpha_grey/sh_alpha_grey.yy",},
{"name":"sh_alpha_hash","order":2,"path":"shaders/sh_alpha_hash/sh_alpha_hash.yy",},
{"name":"sh_atlas_scan","order":53,"path":"shaders/sh_atlas_scan/sh_atlas_scan.yy",},
@ -1483,7 +1484,7 @@
{"name":"sh_blur_simple","order":10,"path":"shaders/sh_blur_simple/sh_blur_simple.yy",},
{"name":"sh_blur_slope","order":11,"path":"shaders/sh_blur_slope/sh_blur_slope.yy",},
{"name":"sh_blur_zoom","order":12,"path":"shaders/sh_blur_zoom/sh_blur_zoom.yy",},
{"name":"sh_box_pattern","order":29,"path":"shaders/sh_box_pattern/sh_box_pattern.yy",},
{"name":"sh_box_pattern","order":30,"path":"shaders/sh_box_pattern/sh_box_pattern.yy",},
{"name":"sh_brush_linear","order":56,"path":"shaders/sh_brush_linear/sh_brush_linear.yy",},
{"name":"sh_brush_outline","order":7,"path":"shaders/sh_brush_outline/sh_brush_outline.yy",},
{"name":"sh_bw","order":3,"path":"shaders/sh_bw/sh_bw.yy",},
@ -1511,7 +1512,7 @@
{"name":"sh_channel_R2R","order":14,"path":"shaders/sh_channel_R2R/sh_channel_R2R.yy",},
{"name":"sh_channel_S","order":5,"path":"shaders/sh_channel_S/sh_channel_S.yy",},
{"name":"sh_channel_V","order":6,"path":"shaders/sh_channel_V/sh_channel_V.yy",},
{"name":"sh_checkerboard","order":13,"path":"shaders/sh_checkerboard/sh_checkerboard.yy",},
{"name":"sh_checkerboard","order":14,"path":"shaders/sh_checkerboard/sh_checkerboard.yy",},
{"name":"sh_chromatic_aberration","order":32,"path":"shaders/sh_chromatic_aberration/sh_chromatic_aberration.yy",},
{"name":"sh_clean_shape","order":37,"path":"shaders/sh_clean_shape/sh_clean_shape.yy",},
{"name":"sh_color_adjust","order":4,"path":"shaders/sh_color_adjust/sh_color_adjust.yy",},
@ -1527,11 +1528,11 @@
{"name":"sh_combine_rgb","order":11,"path":"shaders/sh_combine_rgb/sh_combine_rgb.yy",},
{"name":"sh_content_sampler","order":2,"path":"shaders/sh_content_sampler/sh_content_sampler.yy",},
{"name":"sh_convolution","order":39,"path":"shaders/sh_convolution/sh_convolution.yy",},
{"name":"sh_coord","order":30,"path":"shaders/sh_coord/sh_coord.yy",},
{"name":"sh_coord","order":31,"path":"shaders/sh_coord/sh_coord.yy",},
{"name":"sh_corner_erode","order":1,"path":"shaders/sh_corner_erode/sh_corner_erode.yy",},
{"name":"sh_corner_iterate","order":2,"path":"shaders/sh_corner_iterate/sh_corner_iterate.yy",},
{"name":"sh_cross_histogram","order":27,"path":"shaders/sh_cross_histogram/sh_cross_histogram.yy",},
{"name":"sh_cross_section","order":26,"path":"shaders/sh_cross_section/sh_cross_section.yy",},
{"name":"sh_cross_histogram","order":28,"path":"shaders/sh_cross_histogram/sh_cross_histogram.yy",},
{"name":"sh_cross_section","order":27,"path":"shaders/sh_cross_section/sh_cross_section.yy",},
{"name":"sh_curve_hsv","order":54,"path":"shaders/sh_curve_hsv/sh_curve_hsv.yy",},
{"name":"sh_curve","order":20,"path":"shaders/sh_curve/sh_curve.yy",},
{"name":"sh_d3d_3d_transform","order":16,"path":"shaders/sh_d3d_3d_transform/sh_d3d_3d_transform.yy",},
@ -1608,10 +1609,10 @@
{"name":"sh_get_max_downsampled","order":8,"path":"shaders/sh_get_max_downsampled/sh_get_max_downsampled.yy",},
{"name":"sh_get_min_downsampled","order":9,"path":"shaders/sh_get_min_downsampled/sh_get_min_downsampled.yy",},
{"name":"sh_glow","order":35,"path":"shaders/sh_glow/sh_glow.yy",},
{"name":"sh_gradient_display_alpha","order":22,"path":"shaders/sh_gradient_display_alpha/sh_gradient_display_alpha.yy",},
{"name":"sh_gradient_display","order":17,"path":"shaders/sh_gradient_display/sh_gradient_display.yy",},
{"name":"sh_gradient_points","order":18,"path":"shaders/sh_gradient_points/sh_gradient_points.yy",},
{"name":"sh_gradient","order":16,"path":"shaders/sh_gradient/sh_gradient.yy",},
{"name":"sh_gradient_display_alpha","order":23,"path":"shaders/sh_gradient_display_alpha/sh_gradient_display_alpha.yy",},
{"name":"sh_gradient_display","order":18,"path":"shaders/sh_gradient_display/sh_gradient_display.yy",},
{"name":"sh_gradient_points","order":19,"path":"shaders/sh_gradient_points/sh_gradient_points.yy",},
{"name":"sh_gradient","order":17,"path":"shaders/sh_gradient/sh_gradient.yy",},
{"name":"sh_grain","order":24,"path":"shaders/sh_grain/sh_grain.yy",},
{"name":"sh_grey_alpha","order":12,"path":"shaders/sh_grey_alpha/sh_grey_alpha.yy",},
{"name":"sh_greyscale","order":13,"path":"shaders/sh_greyscale/sh_greyscale.yy",},
@ -1625,7 +1626,7 @@
{"name":"sh_interlaced","order":58,"path":"shaders/sh_interlaced/sh_interlaced.yy",},
{"name":"sh_invert","order":17,"path":"shaders/sh_invert/sh_invert.yy",},
{"name":"sh_jpeg_recons","order":1,"path":"shaders/sh_jpeg_recons/sh_jpeg_recons.yy",},
{"name":"sh_julia_set","order":32,"path":"shaders/sh_julia_set/sh_julia_set.yy",},
{"name":"sh_julia_set","order":33,"path":"shaders/sh_julia_set/sh_julia_set.yy",},
{"name":"sh_kuwahara_ani_pass1","order":1,"path":"shaders/sh_kuwahara_ani_pass1/sh_kuwahara_ani_pass1.yy",},
{"name":"sh_kuwahara_ani_pass2","order":2,"path":"shaders/sh_kuwahara_ani_pass2/sh_kuwahara_ani_pass2.yy",},
{"name":"sh_kuwahara_ani_pass3","order":3,"path":"shaders/sh_kuwahara_ani_pass3/sh_kuwahara_ani_pass3.yy",},
@ -1668,6 +1669,8 @@
{"name":"sh_node_widget_rotator","order":1,"path":"shaders/sh_node_widget_rotator/sh_node_widget_rotator.yy",},
{"name":"sh_node_widget_scalar_cross","order":2,"path":"shaders/sh_node_widget_scalar_cross/sh_node_widget_scalar_cross.yy",},
{"name":"sh_node_widget_scalar_line","order":3,"path":"shaders/sh_node_widget_scalar_line/sh_node_widget_scalar_line.yy",},
{"name":"sh_noise_blue_interpret","order":21,"path":"shaders/sh_noise_blue_interpret/sh_noise_blue_interpret.yy",},
{"name":"sh_noise_blue_iterate","order":20,"path":"shaders/sh_noise_blue_iterate/sh_noise_blue_iterate.yy",},
{"name":"sh_noise_bubble","order":2,"path":"shaders/sh_noise_bubble/sh_noise_bubble.yy",},
{"name":"sh_noise_cristal","order":18,"path":"shaders/sh_noise_cristal/sh_noise_cristal.yy",},
{"name":"sh_noise_fbm","order":3,"path":"shaders/sh_noise_fbm/sh_noise_fbm.yy",},
@ -1693,7 +1696,7 @@
{"name":"sh_palette_mixer_atlas_expand_palette","order":3,"path":"shaders/sh_palette_mixer_atlas_expand_palette/sh_palette_mixer_atlas_expand_palette.yy",},
{"name":"sh_palette_replace","order":38,"path":"shaders/sh_palette_replace/sh_palette_replace.yy",},
{"name":"sh_palette_shift","order":19,"path":"shaders/sh_palette_shift/sh_palette_shift.yy",},
{"name":"sh_path_fill_profile","order":25,"path":"shaders/sh_path_fill_profile/sh_path_fill_profile.yy",},
{"name":"sh_path_fill_profile","order":26,"path":"shaders/sh_path_fill_profile/sh_path_fill_profile.yy",},
{"name":"sh_path_morph","order":10,"path":"shaders/sh_path_morph/sh_path_morph.yy",},
{"name":"sh_pb_blob","order":1,"path":"shaders/sh_pb_blob/sh_pb_blob.yy",},
{"name":"sh_pb_brick","order":9,"path":"shaders/sh_pb_brick/sh_pb_brick.yy",},
@ -1709,16 +1712,16 @@
{"name":"sh_perlin_smear","order":14,"path":"shaders/sh_perlin_smear/sh_perlin_smear.yy",},
{"name":"sh_perlin_tiled","order":15,"path":"shaders/sh_perlin_tiled/sh_perlin_tiled.yy",},
{"name":"sh_perlin","order":12,"path":"shaders/sh_perlin/sh_perlin.yy",},
{"name":"sh_pixel_cloud","order":14,"path":"shaders/sh_pixel_cloud/sh_pixel_cloud.yy",},
{"name":"sh_pixel_cloud","order":15,"path":"shaders/sh_pixel_cloud/sh_pixel_cloud.yy",},
{"name":"sh_pixel_math","order":57,"path":"shaders/sh_pixel_math/sh_pixel_math.yy",},
{"name":"sh_pixel_sample","order":28,"path":"shaders/sh_pixel_sample/sh_pixel_sample.yy",},
{"name":"sh_pixel_sample","order":29,"path":"shaders/sh_pixel_sample/sh_pixel_sample.yy",},
{"name":"sh_pixel_sort","order":34,"path":"shaders/sh_pixel_sort/sh_pixel_sort.yy",},
{"name":"sh_polar","order":1,"path":"shaders/sh_polar/sh_polar.yy",},
{"name":"sh_posterize_palette","order":21,"path":"shaders/sh_posterize_palette/sh_posterize_palette.yy",},
{"name":"sh_posterize","order":25,"path":"shaders/sh_posterize/sh_posterize.yy",},
{"name":"sh_preview_histogram_outline","order":1,"path":"shaders/sh_preview_histogram_outline/sh_preview_histogram_outline.yy",},
{"name":"sh_pytagorean_tile","order":4,"path":"shaders/sh_pytagorean_tile/sh_pytagorean_tile.yy",},
{"name":"sh_quarsicrystal","order":24,"path":"shaders/sh_quarsicrystal/sh_quarsicrystal.yy",},
{"name":"sh_quarsicrystal","order":25,"path":"shaders/sh_quarsicrystal/sh_quarsicrystal.yy",},
{"name":"sh_random_tile","order":6,"path":"shaders/sh_random_tile/sh_random_tile.yy",},
{"name":"sh_rd_add","order":3,"path":"shaders/sh_rd_add/sh_rd_add.yy",},
{"name":"sh_rd_propagate","order":1,"path":"shaders/sh_rd_propagate/sh_rd_propagate.yy",},
@ -1742,7 +1745,7 @@
{"name":"sh_rm_terrain","order":1,"path":"shaders/sh_rm_terrain/sh_rm_terrain.yy",},
{"name":"sh_rsh_erode","order":2,"path":"shaders/sh_rsh_erode/sh_rsh_erode.yy",},
{"name":"sh_rsh_rotate","order":1,"path":"shaders/sh_rsh_rotate/sh_rsh_rotate.yy",},
{"name":"sh_sample_points","order":19,"path":"shaders/sh_sample_points/sh_sample_points.yy",},
{"name":"sh_sample_points","order":20,"path":"shaders/sh_sample_points/sh_sample_points.yy",},
{"name":"sh_sao","order":4,"path":"shaders/sh_sao/sh_sao.yy",},
{"name":"sh_scale_cleanedge","order":55,"path":"shaders/sh_scale_cleanedge/sh_scale_cleanedge.yy",},
{"name":"sh_scale2x","order":28,"path":"shaders/sh_scale2x/sh_scale2x.yy",},
@ -1756,16 +1759,16 @@
{"name":"sh_shadow_cast_light_sep","order":1,"path":"shaders/sh_shadow_cast_light_sep/sh_shadow_cast_light_sep.yy",},
{"name":"sh_shape_map_circle","order":14,"path":"shaders/sh_shape_map_circle/sh_shape_map_circle.yy",},
{"name":"sh_shape_map_polygon","order":15,"path":"shaders/sh_shape_map_polygon/sh_shape_map_polygon.yy",},
{"name":"sh_shape","order":10,"path":"shaders/sh_shape/sh_shape.yy",},
{"name":"sh_shape","order":11,"path":"shaders/sh_shape/sh_shape.yy",},
{"name":"sh_simplex","order":16,"path":"shaders/sh_simplex/sh_simplex.yy",},
{"name":"sh_skew","order":6,"path":"shaders/sh_skew/sh_skew.yy",},
{"name":"sh_sky_hosek","order":2,"path":"shaders/sh_sky_hosek/sh_sky_hosek.yy",},
{"name":"sh_sky_scattering","order":1,"path":"shaders/sh_sky_scattering/sh_sky_scattering.yy",},
{"name":"sh_slice_spritesheet_empty_scan","order":7,"path":"shaders/sh_slice_spritesheet_empty_scan/sh_slice_spritesheet_empty_scan.yy",},
{"name":"sh_smear","order":13,"path":"shaders/sh_smear/sh_smear.yy",},
{"name":"sh_solid","order":15,"path":"shaders/sh_solid/sh_solid.yy",},
{"name":"sh_solid","order":16,"path":"shaders/sh_solid/sh_solid.yy",},
{"name":"sh_spherize","order":11,"path":"shaders/sh_spherize/sh_spherize.yy",},
{"name":"sh_stripe","order":11,"path":"shaders/sh_stripe/sh_stripe.yy",},
{"name":"sh_stripe","order":12,"path":"shaders/sh_stripe/sh_stripe.yy",},
{"name":"sh_surface_replace_fast_find","order":2,"path":"shaders/sh_surface_replace_fast_find/sh_surface_replace_fast_find.yy",},
{"name":"sh_surface_replace_fast_replace","order":3,"path":"shaders/sh_surface_replace_fast_replace/sh_surface_replace_fast_replace.yy",},
{"name":"sh_surface_replace_replace","order":1,"path":"shaders/sh_surface_replace_replace/sh_surface_replace_replace.yy",},
@ -1795,10 +1798,10 @@
{"name":"sh_voronoi_extra","order":17,"path":"shaders/sh_voronoi_extra/sh_voronoi_extra.yy",},
{"name":"sh_warp_4points_pers","order":10,"path":"shaders/sh_warp_4points_pers/sh_warp_4points_pers.yy",},
{"name":"sh_warp_4points","order":9,"path":"shaders/sh_warp_4points/sh_warp_4points.yy",},
{"name":"sh_water_caustic","order":21,"path":"shaders/sh_water_caustic/sh_water_caustic.yy",},
{"name":"sh_water_caustic","order":22,"path":"shaders/sh_water_caustic/sh_water_caustic.yy",},
{"name":"sh_widget_rotator_range","order":5,"path":"shaders/sh_widget_rotator_range/sh_widget_rotator_range.yy",},
{"name":"sh_widget_rotator","order":4,"path":"shaders/sh_widget_rotator/sh_widget_rotator.yy",},
{"name":"sh_zigzag","order":12,"path":"shaders/sh_zigzag/sh_zigzag.yy",},
{"name":"sh_zigzag","order":13,"path":"shaders/sh_zigzag/sh_zigzag.yy",},
{"name":"credit_badge_popular","order":2,"path":"sprites/credit_badge_popular/credit_badge_popular.yy",},
{"name":"credit_badge_value","order":1,"path":"sprites/credit_badge_value/credit_badge_value.yy",},
{"name":"s_3d_preview_settings","order":1,"path":"sprites/s_3d_preview_settings/s_3d_preview_settings.yy",},

View file

@ -314,7 +314,7 @@
{"$GMFolder":"","%Name":"Fracture","folderPath":"folders/shader/MK effects/Fracture.yy","name":"Fracture","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"Subpixel","folderPath":"folders/shader/MK effects/Subpixel.yy","name":"Subpixel","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"Tile","folderPath":"folders/shader/MK effects/Tile.yy","name":"Tile","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"noise","folderPath":"folders/shader/noise.yy","name":"noise","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"noise","folderPath":"folders/shader/generator/noise.yy","name":"noise","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"pixel_builder","folderPath":"folders/shader/pixel_builder.yy","name":"pixel_builder","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"ray march","folderPath":"folders/shader/ray march.yy","name":"ray march","resourceType":"GMFolder","resourceVersion":"2.0",},
{"$GMFolder":"","%Name":"sprites","folderPath":"folders/shader/sprites.yy","name":"sprites","resourceType":"GMFolder","resourceVersion":"2.0",},
@ -1493,6 +1493,7 @@
{"id":{"name":"node_morph_surface","path":"scripts/node_morph_surface/node_morph_surface.yy",},},
{"id":{"name":"node_move_point","path":"scripts/node_move_point/node_move_point.yy",},},
{"id":{"name":"node_noise_aniso","path":"scripts/node_noise_aniso/node_noise_aniso.yy",},},
{"id":{"name":"node_noise_blue","path":"scripts/node_noise_blue/node_noise_blue.yy",},},
{"id":{"name":"node_noise_bubble","path":"scripts/node_noise_bubble/node_noise_bubble.yy",},},
{"id":{"name":"node_noise_cristal","path":"scripts/node_noise_cristal/node_noise_cristal.yy",},},
{"id":{"name":"node_noise_fbm","path":"scripts/node_noise_fbm/node_noise_fbm.yy",},},
@ -2300,6 +2301,8 @@
{"id":{"name":"sh_node_widget_scalar_cross","path":"shaders/sh_node_widget_scalar_cross/sh_node_widget_scalar_cross.yy",},},
{"id":{"name":"sh_node_widget_scalar_line","path":"shaders/sh_node_widget_scalar_line/sh_node_widget_scalar_line.yy",},},
{"id":{"name":"sh_node_widget_scalar","path":"shaders/sh_node_widget_scalar/sh_node_widget_scalar.yy",},},
{"id":{"name":"sh_noise_blue_interpret","path":"shaders/sh_noise_blue_interpret/sh_noise_blue_interpret.yy",},},
{"id":{"name":"sh_noise_blue_iterate","path":"shaders/sh_noise_blue_iterate/sh_noise_blue_iterate.yy",},},
{"id":{"name":"sh_noise_bubble","path":"shaders/sh_noise_bubble/sh_noise_bubble.yy",},},
{"id":{"name":"sh_noise_cristal","path":"shaders/sh_noise_cristal/sh_noise_cristal.yy",},},
{"id":{"name":"sh_noise_fbm","path":"shaders/sh_noise_fbm/sh_noise_fbm.yy",},},

View file

@ -1104,7 +1104,8 @@ event_inherited();
BLEND_NORMAL
}
if(_hover && MOUSE_MOVED && point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_size, yy + grid_size)) {
var _minput = _hover && (MOUSE_MOVED || mouse_release(mb_any));
if(_minput && point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_size, yy + grid_size)) {
search_pane.hover_content = true;
node_selecting = i;
@ -1236,7 +1237,8 @@ event_inherited();
if(i % 2) draw_sprite_stretched_add(THEME.node_bg, 0, pd, yy, list_width - pd * 2, list_height, c_white, 0.1);
if(_hover && MOUSE_MOVED && point_in_rectangle(_m[0], _m[1], pd + ui(16 * 2), yy, list_width, yy + list_height - 1)) {
var _minput = _hover && (MOUSE_MOVED || mouse_release(mb_any));
if(_minput && point_in_rectangle(_m[0], _m[1], pd + ui(16 * 2), yy, list_width, yy + list_height - 1)) {
search_pane.hover_content = true;
node_selecting = i;

View file

@ -15,7 +15,7 @@
}
#macro SCROLL_SPEED PREFERENCES.mouse_wheel_speed
#macro MOUSE_MOVED (window_mouse_get_delta_x() || window_mouse_get_delta_y())
#macro MOUSE_MOVED (window_mouse_get_delta_x() != 0 || window_mouse_get_delta_y() != 0)
#macro mouse_wheel_up mouse_wheel_up_override
#macro __mouse_wheel_up mouse_wheel_up

View file

@ -0,0 +1,62 @@
function Node_Noise_Blue(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
name = "Blue Noise";
newInput(0, nodeValue_Dimension(self));
newInput(1, nodeValueSeed(self));
newInput(2, nodeValue_Enum_Button("Color mode", self, 0, [ "Greyscale", "RGB", "HSV" ]));
newInput(3, nodeValue_Slider_Range("Color R range", self, [ 0, 1 ]));
newInput(4, nodeValue_Slider_Range("Color G range", self, [ 0, 1 ]));
newInput(5, nodeValue_Slider_Range("Color B range", self, [ 0, 1 ]));
input_display_list = [
["Output", false], 0,
["Noise", false], 1,
["Color", false], 2, 3, 4, 5,
];
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();
static step = function() {
var _col = getInputData(2);
inputs[3].setVisible(_col != 0);
inputs[4].setVisible(_col != 0);
inputs[5].setVisible(_col != 0);
inputs[3].name = _col == 1? "Color R range" : "Color H range";
inputs[4].name = _col == 1? "Color G range" : "Color S range";
inputs[5].name = _col == 1? "Color B range" : "Color V range";
}
static processData = function(_outSurf, _data, _output_index, _array_index) {
var _dim = _data[0];
var _sed = _data[1];
var _col = _data[2];
var _clr = _data[3];
var _clg = _data[4];
var _clb = _data[5];
_outSurf = surface_verify(_outSurf, _dim[0], _dim[1], attrDepth());
surface_set_shader(_outSurf, sh_noise);
shader_set_f("seed", _sed);
shader_set_i("colored", _col);
shader_set_2("colorRanR", _clr);
shader_set_2("colorRanG", _clg);
shader_set_2("colorRanB", _clb);
draw_sprite_ext(s_fx_pixel, 0, 0, 0, _dim[0], _dim[1], 0, c_white, 1);
surface_reset_shader();
return _outSurf;
}
}

View file

@ -0,0 +1,14 @@
{
"$GMScript":"v1",
"%Name":"node_noise_blue",
"isCompatibility":false,
"isDnD":false,
"name":"node_noise_blue",
"parent":{
"name":"noise",
"path":"folders/nodes/data/generator/noise.yy",
},
"resourceType":"GMScript",
"resourceVersion":"2.0",
"tags":[],
}

File diff suppressed because it is too large Load diff

View file

@ -75,11 +75,4 @@ function __NodeValue_Dimension(_node, value) : NodeValue("Dimension", _node, CON
return animator.getValue(_time);
}
static showValue = function() {
if(attributes.use_project_dimension)
return PROJECT.attributes.surface_dimension;
return __showValue();
}
}

View file

@ -136,6 +136,49 @@ function string_partial_match(str, key) {
function string_partial_match_res(str, key, keys) {
if(str == key) return [ 9999, array_create(string_length(str) + 1, 1) ];
var lenn = string_length(str);
var lenm = string_length(key);
var runm = 1;
var _minmat = -lenn * lenm;
var _matRng = array_create(string_length(str) + 1, 0);
var _mated = array_create(string_length(str) + 1, 0);
while(runm <= lenm) {
var m = string_char_at(key, runm);
var runn = 1;
var matc = -1;
while(runn <= lenn) {
var n = string_char_at(str, runn);
if(_mated[runn] == 0 && m == n) {
matc = runn;
_minmat += lenn - abs(runm - runn);
if(runn > 1 && string_char_at(str, runn - 1) == " ")
_minmat += 2;
_mated[runn] = 1;
_matRng[runn] = 1;
break;
}
runn++;
}
if(matc == -1) {
_minmat = -9999;
break;
}
runm++
}
return [ _minmat, _matRng ];
}
function __string_partial_match_res(str, key, keys) {
if(str == key) return [ 9999, array_create(string_length(str) + 1, 1) ];
var _minmat = 9999;
var _matRng = array_create(string_length(str) + 1, 0);

View file

@ -4,7 +4,7 @@
"name":"sh_ani_noise",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -0,0 +1,10 @@
//
// Simple passthrough fragment shader
//
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main()
{
gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord );
}

View file

@ -0,0 +1,19 @@
//
// Simple passthrough vertex shader
//
attribute vec3 in_Position; // (x,y,z)
//attribute vec3 in_Normal; // (x,y,z) unused in this shader.
attribute vec4 in_Colour; // (r,g,b,a)
attribute vec2 in_TextureCoord; // (u,v)
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main()
{
vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);
gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;
v_vColour = in_Colour;
v_vTexcoord = in_TextureCoord;
}

View file

@ -0,0 +1,12 @@
{
"$GMShader":"",
"%Name":"sh_noise_blue_interpret",
"name":"sh_noise_blue_interpret",
"parent":{
"name":"noise",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",
"type":1,
}

View file

@ -0,0 +1,6 @@
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main() {
gl_FragColor = v_vColour * texture2D(gm_BaseTexture, v_vTexcoord);
}

View file

@ -0,0 +1,14 @@
attribute vec3 in_Position; // (x, y, z)
attribute vec4 in_Colour; // (r, g, b, a)
attribute vec2 in_TextureCoord; // (u, v)
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
void main() {
vec4 object_space_pos = vec4(in_Position.x, in_Position.y, in_Position.z, 1.0);
gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;
v_vColour = in_Colour;
v_vTexcoord = in_TextureCoord;
}

View file

@ -0,0 +1,12 @@
{
"$GMShader":"",
"%Name":"sh_noise_blue_iterate",
"name":"sh_noise_blue_iterate",
"parent":{
"name":"noise",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",
"type":1,
}

View file

@ -4,7 +4,7 @@
"name":"sh_noise_bubble",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_cristal",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_fbm",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_flow",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_fold",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_gabor",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_grid_hex",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_grid_tri",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_honey",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_shard",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_strand",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_noise_wavelet",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_perlin",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_perlin_extra",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_perlin_smear",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_perlin_tiled",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_simplex",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",

View file

@ -4,7 +4,7 @@
"name":"sh_voronoi_extra",
"parent":{
"name":"noise",
"path":"folders/shader/noise.yy",
"path":"folders/shader/generator/noise.yy",
},
"resourceType":"GMShader",
"resourceVersion":"2.0",