From 59add0d468ab8a2d0a7e297bd6e96a7bc12799c4 Mon Sep 17 00:00:00 2001 From: Rodolphe Suescun Date: Sat, 3 Nov 2018 19:35:18 +0100 Subject: [PATCH] Updated transform and blend nodes to support alpha. Removed obsolete scenes. --- addons/material_maker/nodes/blend/blend.tscn | 17 +- addons/material_maker/nodes/bricks/bricks.gd | 34 -- .../material_maker/nodes/bricks/bricks.tscn | 498 ------------------ addons/material_maker/nodes/color.mmn | 1 - addons/material_maker/nodes/compound.tscn | 94 ---- addons/material_maker/nodes/noise/noise.gd | 24 - addons/material_maker/nodes/noise/noise.tscn | 182 ------- .../material_maker/nodes/pattern/pattern.gd | 20 - .../material_maker/nodes/pattern/pattern.tscn | 311 ----------- addons/material_maker/nodes/perlin/perlin.gd | 21 - .../material_maker/nodes/perlin/perlin.tscn | 252 --------- addons/material_maker/nodes/shape/shape.gd | 12 - addons/material_maker/nodes/shape/shape.tscn | 180 ------- .../nodes/transform/transform.gd | 2 +- .../nodes/transform/transform.tscn | 5 +- .../material_maker/nodes/uniform/uniform.gd | 10 - .../material_maker/nodes/uniform/uniform.tscn | 68 --- .../material_maker/nodes/voronoi/voronoi.gd | 26 - .../material_maker/nodes/voronoi/voronoi.tscn | 255 --------- 19 files changed, 11 insertions(+), 2001 deletions(-) delete mode 100644 addons/material_maker/nodes/bricks/bricks.gd delete mode 100644 addons/material_maker/nodes/bricks/bricks.tscn delete mode 100644 addons/material_maker/nodes/color.mmn delete mode 100644 addons/material_maker/nodes/compound.tscn delete mode 100644 addons/material_maker/nodes/noise/noise.gd delete mode 100644 addons/material_maker/nodes/noise/noise.tscn delete mode 100644 addons/material_maker/nodes/pattern/pattern.gd delete mode 100644 addons/material_maker/nodes/pattern/pattern.tscn delete mode 100644 addons/material_maker/nodes/perlin/perlin.gd delete mode 100644 addons/material_maker/nodes/perlin/perlin.tscn delete mode 100644 addons/material_maker/nodes/shape/shape.gd delete mode 100644 addons/material_maker/nodes/shape/shape.tscn delete mode 100644 addons/material_maker/nodes/uniform/uniform.gd delete mode 100644 addons/material_maker/nodes/uniform/uniform.tscn delete mode 100644 addons/material_maker/nodes/voronoi/voronoi.gd delete mode 100644 addons/material_maker/nodes/voronoi/voronoi.tscn diff --git a/addons/material_maker/nodes/blend/blend.tscn b/addons/material_maker/nodes/blend/blend.tscn index c554809..17c3443 100644 --- a/addons/material_maker/nodes/blend/blend.tscn +++ b/addons/material_maker/nodes/blend/blend.tscn @@ -2,7 +2,6 @@ [ext_resource path="res://addons/material_maker/nodes/blend/blend.gd" type="Script" id=1] - [sub_resource type="Theme" id=1] @@ -31,30 +30,30 @@ comment = false overlay = 0 slot/0/left_enabled = false slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) +slot/0/left_color = Color( 1, 1, 1, 1 ) slot/0/right_enabled = true slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) +slot/0/right_color = Color( 0, 1, 0, 0.501961 ) slot/1/left_enabled = true slot/1/left_type = 0 -slot/1/left_color = Color( 0.5, 0.5, 1, 1 ) +slot/1/left_color = Color( 0, 1, 0, 0.501961 ) slot/1/right_enabled = false slot/1/right_type = 0 -slot/1/right_color = Color( 0.5, 0.5, 1, 1 ) +slot/1/right_color = Color( 1, 1, 1, 1 ) slot/2/left_enabled = true slot/2/left_type = 0 -slot/2/left_color = Color( 0.5, 0.5, 1, 1 ) +slot/2/left_color = Color( 0, 1, 0, 0.501961 ) slot/2/right_enabled = false slot/2/right_type = 0 -slot/2/right_color = Color( 0.5, 0.5, 1, 1 ) +slot/2/right_color = Color( 1, 1, 1, 1 ) slot/3/left_enabled = true slot/3/left_type = 0 slot/3/left_color = Color( 0.756863, 0.756863, 0.756863, 1 ) slot/3/right_enabled = false slot/3/right_type = 0 -slot/3/right_color = Color( 0.5, 0.5, 1, 1 ) +slot/3/right_color = Color( 1, 1, 1, 0.501961 ) script = ExtResource( 1 ) -_sections_unfolded = [ "Mouse", "Theme", "slot", "slot/1", "slot/3" ] +_sections_unfolded = [ "Mouse", "Theme", "slot", "slot/0", "slot/1", "slot/2", "slot/3" ] [node name="blend_type" type="OptionButton" parent="." index="0"] diff --git a/addons/material_maker/nodes/bricks/bricks.gd b/addons/material_maker/nodes/bricks/bricks.gd deleted file mode 100644 index b8a7b06..0000000 --- a/addons/material_maker/nodes/bricks/bricks.gd +++ /dev/null @@ -1,34 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -const BRICK_PATTERNS = [ - { name="Running bond", suffix="rb", has_offset=true, has_repeat=false }, - { name="Running bond (2)", suffix="rb2", has_offset=true, has_repeat=false }, - { name="HerringBone", suffix="hb", has_offset=false, has_repeat=true }, - { name="Basket weave", suffix="bw", has_offset=false, has_repeat=true }, - { name="Spanish bond", suffix="sb", has_offset=false, has_repeat=true } -] - -func _ready(): - $pattern.clear() - for p in BRICK_PATTERNS: - $pattern.add_item(p.name) - initialize_properties([ $pattern, $HBoxContainer1/rows, $HBoxContainer2/columns, $HBoxContainer6/repeat, $HBoxContainer3/row_offset, $HBoxContainer4/mortar, $HBoxContainer5/bevel ]) - -func _get_shader_code(uv, slot = 0): - var rv = { defs="", code="" } - if generated_variants.empty(): - rv.defs = "vec3 %s_xyz(vec2 uv) { return bricks_%s(uv, vec2(%d, %d), %.9f, %.9f, %.9f, %.9f); }\n" % [ name, BRICK_PATTERNS[parameters.pattern].suffix, parameters.columns, parameters.rows, parameters.repeat, parameters.row_offset, parameters.mortar, max(0.001, parameters.bevel) ] - var variant_index = generated_variants.find(uv) - if variant_index == -1: - variant_index = generated_variants.size() - generated_variants.append(uv) - rv.code = "vec3 %s_%d_xyz = %s_xyz(%s);\n" % [ name, variant_index, name, uv ] - if slot == 0: - rv.f = "%s_%d_xyz.x" % [ name, variant_index ] - else: - rv.rgb = "rand3(%s_%d_xyz.yz+vec2(%.9f))" % [ name, variant_index, get_seed() ] - return rv - -func _on_offset_changed(): - update_shaders() diff --git a/addons/material_maker/nodes/bricks/bricks.tscn b/addons/material_maker/nodes/bricks/bricks.tscn deleted file mode 100644 index 8f0c7c3..0000000 --- a/addons/material_maker/nodes/bricks/bricks.tscn +++ /dev/null @@ -1,498 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/bricks/bricks.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Bricks" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_right = 171.0 -margin_bottom = 154.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Bricks" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/1/left_enabled = false -slot/1/left_type = 0 -slot/1/left_color = Color( 0.498039, 0.498039, 1, 1 ) -slot/1/right_enabled = true -slot/1/right_type = 0 -slot/1/right_color = Color( 0.498039, 0.498039, 1, 1 ) -slot/2/left_enabled = false -slot/2/left_type = 0 -slot/2/left_color = Color( 1, 1, 1, 1 ) -slot/2/right_enabled = false -slot/2/right_type = 0 -slot/2/right_color = Color( 1, 1, 1, 1 ) -slot/3/left_enabled = false -slot/3/left_type = 0 -slot/3/left_color = Color( 1, 1, 1, 1 ) -slot/3/right_enabled = false -slot/3/right_type = 0 -slot/3/right_color = Color( 1, 1, 1, 1 ) -slot/4/left_enabled = false -slot/4/left_type = 0 -slot/4/left_color = Color( 1, 1, 1, 1 ) -slot/4/right_enabled = false -slot/4/right_type = 0 -slot/4/right_color = Color( 1, 1, 1, 1 ) -slot/5/left_enabled = false -slot/5/left_type = 0 -slot/5/left_color = Color( 1, 1, 1, 1 ) -slot/5/right_enabled = false -slot/5/right_type = 0 -slot/5/right_color = Color( 1, 1, 1, 1 ) -slot/6/left_enabled = false -slot/6/left_type = 0 -slot/6/left_color = Color( 1, 1, 1, 1 ) -slot/6/right_enabled = false -slot/6/right_type = 0 -slot/6/right_color = Color( 1, 1, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Mouse", "Theme", "slot", "slot/0", "slot/1" ] - -[node name="pattern" type="OptionButton" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 154.0 -margin_bottom = 44.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "Running bond" -flat = false -align = 0 -items = [ "Running bond", null, false, -1, null, "Running bond (2)", null, false, -1, null, "HerringBone", null, false, -1, null, "Basket weave", null, false, -1, null, "Spanish bond", null, false, -1, null ] -selected = 0 -_sections_unfolded = [ "Size Flags" ] - -[node name="HBoxContainer6" type="HBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 44.0 -margin_right = 154.0 -margin_bottom = 68.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label1" type="Label" parent="HBoxContainer6" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Repeat:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="repeat" type="SpinBox" parent="HBoxContainer6" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 1.0 -max_value = 8.0 -step = 1.0 -page = 0.0 -value = 1.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer1" type="HBoxContainer" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 69.0 -margin_right = 154.0 -margin_bottom = 93.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label1" type="Label" parent="HBoxContainer1" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Rows:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="rows" type="SpinBox" parent="HBoxContainer1" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 1.0 -max_value = 64.0 -step = 1.0 -page = 0.0 -value = 6.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer2" type="HBoxContainer" parent="." index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 94.0 -margin_right = 154.0 -margin_bottom = 118.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label2" type="Label" parent="HBoxContainer2" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Columns:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="columns" type="SpinBox" parent="HBoxContainer2" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 1.0 -max_value = 64.0 -step = 1.0 -page = 0.0 -value = 3.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer3" type="HBoxContainer" parent="." index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 119.0 -margin_right = 154.0 -margin_bottom = 143.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label3" type="Label" parent="HBoxContainer3" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Offset:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="row_offset" type="SpinBox" parent="HBoxContainer3" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 1.0 -step = 0.05 -page = 0.0 -value = 0.5 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer4" type="HBoxContainer" parent="." index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 144.0 -margin_right = 154.0 -margin_bottom = 168.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label4" type="Label" parent="HBoxContainer4" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Mortar:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="mortar" type="SpinBox" parent="HBoxContainer4" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 1.0 -step = 0.05 -page = 0.0 -value = 0.1 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer5" type="HBoxContainer" parent="." index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 169.0 -margin_right = 154.0 -margin_bottom = 193.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label5" type="Label" parent="HBoxContainer5" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 60.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Bevel:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="bevel" type="SpinBox" parent="HBoxContainer5" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 64.0 -margin_right = 138.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 9 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 1.0 -step = 0.05 -page = 0.0 -value = 0.1 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[connection signal="offset_changed" from="." to="." method="_on_offset_changed"] - - diff --git a/addons/material_maker/nodes/color.mmn b/addons/material_maker/nodes/color.mmn deleted file mode 100644 index 2a652e3..0000000 --- a/addons/material_maker/nodes/color.mmn +++ /dev/null @@ -1 +0,0 @@ -{"global":"","instance":"","name":"Uniform","outputs":[{"rgba":"$(color)"}],"parameters":[{"default":{"a":1,"b":1,"g":1,"r":1},"label":"","name":"color","type":"color"}]} \ No newline at end of file diff --git a/addons/material_maker/nodes/compound.tscn b/addons/material_maker/nodes/compound.tscn deleted file mode 100644 index 6c0bdcc..0000000 --- a/addons/material_maker/nodes/compound.tscn +++ /dev/null @@ -1,94 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/uniform/uniform.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Compound" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 114.0 -margin_bottom = 53.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Compound" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="Contents" type="Node" parent="." index="0"] - -[node name="GraphNode" type="GraphNode" parent="Contents" index="0"] - -visible = false -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 17.0 -margin_top = 28.0 -margin_right = 99.0 -margin_bottom = 57.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -title = "" -offset = Vector2( 0, 0 ) -show_close = false -resizable = false -selected = false -comment = false -overlay = 0 - -[node name="SpinBox" type="SpinBox" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 98.0 -margin_bottom = 48.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 100.0 -step = 1.0 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" - - diff --git a/addons/material_maker/nodes/noise/noise.gd b/addons/material_maker/nodes/noise/noise.gd deleted file mode 100644 index cf0ea9f..0000000 --- a/addons/material_maker/nodes/noise/noise.gd +++ /dev/null @@ -1,24 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -func _ready(): - $HBoxContainer1/size.clear() - for i in range(7): - $HBoxContainer1/size.add_item(str(int(pow(2, 5+i))), i) - $HBoxContainer1/size.selected = 4 - initialize_properties([ $HBoxContainer1/size, $HBoxContainer2/density ]) - -func _get_shader_code(uv): - var rv = { defs="", code="" } - if generated_variants.empty(): - rv.defs = "float %s_f(vec2 uv) { return dots(uv, %.9f, %.9f, %d); }\n" % [ name, 1.0/pow(2.0, 5.0+parameters.size), parameters.density, get_seed() ] - var variant_index = generated_variants.find(uv) - if variant_index == -1: - variant_index = generated_variants.size() - generated_variants.append(uv) - rv.code = "float %s_%d_f = %s_f(%s);\n" % [ name, variant_index, name, uv ] - rv.f = "%s_%d_f" % [ name, variant_index ] - return rv - -func _on_offset_changed(): - update_shaders() diff --git a/addons/material_maker/nodes/noise/noise.tscn b/addons/material_maker/nodes/noise/noise.tscn deleted file mode 100644 index a7827de..0000000 --- a/addons/material_maker/nodes/noise/noise.tscn +++ /dev/null @@ -1,182 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/noise/noise.gd" type="Script" id=1] - -[sub_resource type="Theme" id=1] - - -[node name="Dots" type="GraphNode"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_top = 2.0 -margin_right = 172.0 -margin_bottom = 83.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Noise" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/1/left_enabled = false -slot/1/left_type = 0 -slot/1/left_color = Color( 1, 1, 1, 1 ) -slot/1/right_enabled = false -slot/1/right_type = 0 -slot/1/right_color = Color( 1, 1, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="HBoxContainer1" type="HBoxContainer" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 156.0 -margin_bottom = 44.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label1" type="Label" parent="HBoxContainer1" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 3.0 -margin_right = 61.0 -margin_bottom = 17.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Grid size:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="size" type="OptionButton" parent="HBoxContainer1" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 65.0 -margin_right = 140.0 -margin_bottom = 20.0 -rect_min_size = Vector2( 75, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "512" -flat = false -align = 0 -items = [ "32", null, false, 0, null, "64", null, false, 1, null, "128", null, false, 2, null, "256", null, false, 3, null, "512", null, false, 4, null, "1024", null, false, 5, null, "2048", null, false, 6, null ] -selected = 4 -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="HBoxContainer2" type="HBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 44.0 -margin_right = 156.0 -margin_bottom = 68.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label2" type="Label" parent="HBoxContainer2" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 61.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Density:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="density" type="SpinBox" parent="HBoxContainer2" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 65.0 -margin_right = 140.0 -margin_bottom = 24.0 -rect_min_size = Vector2( 75, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 1.0 -step = 0.05 -page = 0.0 -value = 0.5 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[connection signal="offset_changed" from="." to="." method="_on_offset_changed"] - - diff --git a/addons/material_maker/nodes/pattern/pattern.gd b/addons/material_maker/nodes/pattern/pattern.gd deleted file mode 100644 index 74f2b90..0000000 --- a/addons/material_maker/nodes/pattern/pattern.gd +++ /dev/null @@ -1,20 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -const WAVE_FCT = [ "wave_sin", "wave_triangle", "wave_square", "fract", "wave_constant" ] -const MIX_FCT = [ "mix_multiply", "mix_add", "mix_max", "mix_min", "mix_xor", "mix_pow" ] - -func _ready(): - initialize_properties([ $HBoxContainer0/mix, $HBoxContainer1/x_wave, $HBoxContainer1/x_scale, $HBoxContainer2/y_wave, $HBoxContainer2/y_scale ]) - -func _get_shader_code(uv): - var rv = { defs="", code="" } - if generated_variants.empty(): - rv.defs = "float %s_f(vec2 uv) { uv *= vec2(%.9f, %.9f); return %s(%s(uv.x), %s(uv.y)); }\n" % [ name, parameters.x_scale, parameters.y_scale, MIX_FCT[parameters.mix], WAVE_FCT[parameters.x_wave], WAVE_FCT[parameters.y_wave] ] - var variant_index = generated_variants.find(uv) - if variant_index == -1: - variant_index = generated_variants.size() - generated_variants.append(uv) - rv.code = "float %s_%d_f = %s_f(%s);\n" % [ name, variant_index, name, uv ] - rv.f = name+"_"+str(variant_index)+"_f" - return rv diff --git a/addons/material_maker/nodes/pattern/pattern.tscn b/addons/material_maker/nodes/pattern/pattern.tscn deleted file mode 100644 index ff7cc24..0000000 --- a/addons/material_maker/nodes/pattern/pattern.tscn +++ /dev/null @@ -1,311 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/pattern/pattern.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Pattern" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 1.0 -margin_right = 208.0 -margin_bottom = 100.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Pattern" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/1/left_enabled = false -slot/1/left_type = 0 -slot/1/left_color = Color( 1, 1, 1, 1 ) -slot/1/right_enabled = false -slot/1/right_type = 0 -slot/1/right_color = Color( 1, 1, 1, 1 ) -slot/2/left_enabled = false -slot/2/left_type = 0 -slot/2/left_color = Color( 1, 1, 1, 1 ) -slot/2/right_enabled = false -slot/2/right_type = 0 -slot/2/right_color = Color( 1, 1, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="HBoxContainer0" type="HBoxContainer" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 192.0 -margin_bottom = 44.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Size Flags" ] - -[node name="Label" type="Label" parent="HBoxContainer0" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 3.0 -margin_right = 81.0 -margin_bottom = 17.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Combiner:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="mix" type="OptionButton" parent="HBoxContainer0" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 85.0 -margin_right = 176.0 -margin_bottom = 20.0 -rect_min_size = Vector2( 82, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "Multiply" -flat = false -align = 0 -items = [ "Multiply", null, false, 0, null, "Add", null, false, 1, null, "Max", null, false, 2, null, "Min", null, false, -1, null, "Xor", null, false, -1, null, "Pow", null, false, -1, null ] -selected = 0 -_sections_unfolded = [ "Rect", "Size Flags" ] - -[node name="HBoxContainer1" type="HBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 44.0 -margin_right = 192.0 -margin_bottom = 68.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Size Flags" ] - -[node name="Label" type="Label" parent="HBoxContainer1" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 12.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "X:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="x_wave" type="OptionButton" parent="HBoxContainer1" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_right = 98.0 -margin_bottom = 24.0 -rect_min_size = Vector2( 82, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "Sine" -flat = false -align = 0 -items = [ "Sine", null, false, 0, null, "Triangle", null, false, 1, null, "Square", null, false, 2, null, "Sawtooth", null, false, 3, null, "Constant", null, false, 4, null ] -selected = 0 -_sections_unfolded = [ "Rect" ] - -[node name="x_scale" type="SpinBox" parent="HBoxContainer1" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 102.0 -margin_right = 176.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 8 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder", "Size Flags" ] - -[node name="HBoxContainer2" type="HBoxContainer" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 69.0 -margin_right = 192.0 -margin_bottom = 93.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Rect", "Size Flags" ] - -[node name="Label" type="Label" parent="HBoxContainer2" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 12.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Y:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="y_wave" type="OptionButton" parent="HBoxContainer2" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_right = 98.0 -margin_bottom = 24.0 -rect_min_size = Vector2( 82, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "Sine" -flat = false -align = 0 -items = [ "Sine", null, false, 0, null, "Triangle", null, false, 1, null, "Square", null, false, 2, null, "Sawtooth", null, false, 3, null, "Constant", null, false, 4, null ] -selected = 0 -_sections_unfolded = [ "Rect" ] - -[node name="y_scale" type="SpinBox" parent="HBoxContainer2" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 102.0 -margin_right = 176.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 8 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder", "Size Flags" ] - - diff --git a/addons/material_maker/nodes/perlin/perlin.gd b/addons/material_maker/nodes/perlin/perlin.gd deleted file mode 100644 index a18bd4c..0000000 --- a/addons/material_maker/nodes/perlin/perlin.gd +++ /dev/null @@ -1,21 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -func _ready(): - set_slot(0, false, 0, Color(0.5, 0.5, 1), true, 0, Color(0.5, 0.5, 1)) - initialize_properties([ $GridContainer/scale_x, $GridContainer/scale_y, $GridContainer/iterations, $GridContainer/persistence ]) - -func _get_shader_code(uv): - var rv = { defs="", code="" } - if generated_variants.empty(): - rv.defs = "float %s_f(vec2 uv) { return perlin(uv, vec2(%f, %f), %d, %.9f, %d); }\n" % [ name, parameters.scale_x, parameters.scale_y, parameters.iterations, parameters.persistence, get_seed() ] - var variant_index = generated_variants.find(uv) - if variant_index == -1: - variant_index = generated_variants.size() - generated_variants.append(uv) - rv.code = "float %s_%d_f = %s_f(%s);\n" % [ name, variant_index, name, uv ] - rv.f = "%s_%d_f" % [ name, variant_index ] - return rv - -func _on_offset_changed(): - update_shaders() diff --git a/addons/material_maker/nodes/perlin/perlin.tscn b/addons/material_maker/nodes/perlin/perlin.tscn deleted file mode 100644 index b182271..0000000 --- a/addons/material_maker/nodes/perlin/perlin.tscn +++ /dev/null @@ -1,252 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/perlin/perlin.gd" type="Script" id=1] - -[sub_resource type="Theme" id=1] - - -[node name="Perlin" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_top = 2.0 -margin_right = 189.0 -margin_bottom = 139.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Perlin" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="GridContainer" type="GridContainer" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 172.0 -margin_bottom = 132.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -columns = 2 - -[node name="Label1" type="Label" parent="GridContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 78.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 -text = "Scale X:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="scale_x" type="SpinBox" parent="GridContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 82.0 -margin_right = 156.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="Label2" type="Label" parent="GridContainer" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 33.0 -margin_right = 78.0 -margin_bottom = 47.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 -text = "Scale Y:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="scale_y" type="SpinBox" parent="GridContainer" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 82.0 -margin_top = 28.0 -margin_right = 156.0 -margin_bottom = 52.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="Label3" type="Label" parent="GridContainer" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 61.0 -margin_right = 78.0 -margin_bottom = 75.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 -text = "Iterations:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="iterations" type="SpinBox" parent="GridContainer" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 82.0 -margin_top = 56.0 -margin_right = 156.0 -margin_bottom = 80.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -min_value = 1.0 -max_value = 10.0 -step = 1.0 -page = 0.0 -value = 3.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[node name="Label4" type="Label" parent="GridContainer" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 89.0 -margin_right = 78.0 -margin_bottom = 103.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 -text = "Persistance:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="persistence" type="SpinBox" parent="GridContainer" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 82.0 -margin_top = 84.0 -margin_right = 156.0 -margin_bottom = 108.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 1.0 -step = 0.05 -page = 0.0 -value = 0.5 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder" ] - -[connection signal="offset_changed" from="." to="." method="_on_offset_changed"] - - diff --git a/addons/material_maker/nodes/shape/shape.gd b/addons/material_maker/nodes/shape/shape.gd deleted file mode 100644 index f0cc284..0000000 --- a/addons/material_maker/nodes/shape/shape.gd +++ /dev/null @@ -1,12 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -const SHAPES = [ "circle", "polygon", "star", "curved_star", "rays" ] - -func _ready(): - initialize_properties([ $shape, $sides, $radius, $edge ]) - -func _get_shader_code(uv): - var rv = { defs="", code="" } - rv.f = "%s(%s, %d, %f, %f)" % [ SHAPES[parameters.shape], uv, parameters.sides, parameters.radius, parameters.edge ] - return rv diff --git a/addons/material_maker/nodes/shape/shape.tscn b/addons/material_maker/nodes/shape/shape.tscn deleted file mode 100644 index 7526c19..0000000 --- a/addons/material_maker/nodes/shape/shape.tscn +++ /dev/null @@ -1,180 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/shape/shape.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Shape" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_top = 1.0 -margin_right = 108.0 -margin_bottom = 101.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Shape" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) -slot/1/left_enabled = false -slot/1/left_type = 0 -slot/1/left_color = Color( 1, 1, 1, 1 ) -slot/1/right_enabled = false -slot/1/right_type = 0 -slot/1/right_color = Color( 1, 1, 1, 1 ) -slot/2/left_enabled = false -slot/2/left_type = 0 -slot/2/left_color = Color( 1, 1, 1, 1 ) -slot/2/right_enabled = false -slot/2/right_type = 0 -slot/2/right_color = Color( 1, 1, 1, 1 ) -slot/3/left_enabled = false -slot/3/left_type = 0 -slot/3/left_color = Color( 1, 1, 1, 1 ) -slot/3/right_enabled = false -slot/3/right_type = 0 -slot/3/right_color = Color( 1, 1, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="shape" type="OptionButton" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 91.0 -margin_bottom = 44.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -action_mode = 0 -enabled_focus_mode = 2 -shortcut = null -group = null -text = "Circle" -flat = false -align = 0 -items = [ "Circle", null, false, 0, null, "Polygon", null, false, 1, null, "Star", null, false, 2, null, "Curved star", null, false, 3, null, "Rays", null, false, 4, null ] -selected = 0 - -[node name="sides" type="HSlider" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 44.0 -margin_right = 91.0 -margin_bottom = 60.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -hint_tooltip = "Sides" -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 0 -min_value = 1.0 -max_value = 16.0 -step = 1.0 -page = 0.0 -value = 3.0 -exp_edit = false -rounded = false -editable = true -tick_count = 0 -ticks_on_borders = false -focus_mode = 2 -_sections_unfolded = [ "Hint" ] - -[node name="radius" type="HSlider" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 61.0 -margin_right = 91.0 -margin_bottom = 77.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -hint_tooltip = "Radius" -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 0 -min_value = 0.0 -max_value = 1.0 -step = 0.01 -page = 0.0 -value = 1.0 -exp_edit = false -rounded = false -editable = true -tick_count = 0 -ticks_on_borders = false -focus_mode = 2 -_sections_unfolded = [ "Hint" ] - -[node name="edge" type="HSlider" parent="." index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 78.0 -margin_right = 91.0 -margin_bottom = 94.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 0 -min_value = 0.0 -max_value = 1.0 -step = 0.01 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false -editable = true -tick_count = 0 -ticks_on_borders = false -focus_mode = 2 -_sections_unfolded = [ "Hint" ] - - diff --git a/addons/material_maker/nodes/transform/transform.gd b/addons/material_maker/nodes/transform/transform.gd index 402341d..a342deb 100644 --- a/addons/material_maker/nodes/transform/transform.gd +++ b/addons/material_maker/nodes/transform/transform.gd @@ -29,7 +29,7 @@ func _get_shader_code(uv): if generated_variants.size() == 1: rv.defs += src_code.defs rv.code += src_code.code - rv.rgb = src_code.rgb + rv.rgba = src_code.rgba return rv func deserialize(data): diff --git a/addons/material_maker/nodes/transform/transform.tscn b/addons/material_maker/nodes/transform/transform.tscn index 5b2e4a9..0d74e8e 100644 --- a/addons/material_maker/nodes/transform/transform.tscn +++ b/addons/material_maker/nodes/transform/transform.tscn @@ -2,7 +2,6 @@ [ext_resource path="res://addons/material_maker/nodes/transform/transform.gd" type="Script" id=1] - [sub_resource type="Theme" id=1] @@ -32,10 +31,10 @@ comment = false overlay = 0 slot/0/left_enabled = true slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) +slot/0/left_color = Color( 0, 1, 0, 0.502784 ) slot/0/right_enabled = true slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) +slot/0/right_color = Color( 0, 1, 0, 0.501961 ) slot/1/left_enabled = true slot/1/left_type = 0 slot/1/left_color = Color( 0.760784, 0.760784, 0.760784, 1 ) diff --git a/addons/material_maker/nodes/uniform/uniform.gd b/addons/material_maker/nodes/uniform/uniform.gd deleted file mode 100644 index 203a2d6..0000000 --- a/addons/material_maker/nodes/uniform/uniform.gd +++ /dev/null @@ -1,10 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -func _ready(): - initialize_properties([ $color ]) - -func _get_shader_code(uv): - var rv = { defs="", code="" } - rv.rgb = "vec3(%.9f, %.9f, %.9f)" % [ parameters.color.r, parameters.color.g, parameters.color.b ] - return rv diff --git a/addons/material_maker/nodes/uniform/uniform.tscn b/addons/material_maker/nodes/uniform/uniform.tscn deleted file mode 100644 index f5e63a1..0000000 --- a/addons/material_maker/nodes/uniform/uniform.tscn +++ /dev/null @@ -1,68 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/uniform/uniform.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Uniform" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_top = 4.0 -margin_right = 98.0 -margin_bottom = 53.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Uniform" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.5, 0.5, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0" ] - -[node name="color" type="ColorPickerButton" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 81.0 -margin_bottom = 44.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null -flat = false -align = 1 -color = Color( 1, 1, 1, 1 ) -edit_alpha = false - - diff --git a/addons/material_maker/nodes/voronoi/voronoi.gd b/addons/material_maker/nodes/voronoi/voronoi.gd deleted file mode 100644 index 44afdb4..0000000 --- a/addons/material_maker/nodes/voronoi/voronoi.gd +++ /dev/null @@ -1,26 +0,0 @@ -tool -extends "res://addons/material_maker/node_base.gd" - -func _ready(): - set_slot(0, false, 0, Color(0.5, 0.5, 1), true, 0, Color(0.5, 0.5, 1)) - initialize_properties([ $HBoxContainer1/scale_x, $HBoxContainer2/scale_y, $HBoxContainer3/intensity ]) - -func _get_shader_code(uv, slot = 0): - var rv = { defs="", code="" } - if generated_variants.empty(): - rv.defs = "vec4 %s_xyzw(vec2 uv) { return voronoi(uv, vec2(%f, %f), %.9f, %d); }\n" % [ name, parameters.scale_x, parameters.scale_y, parameters.intensity, get_seed() ] - var variant_index = generated_variants.find(uv) - if variant_index == -1: - variant_index = generated_variants.size() - generated_variants.append(uv) - rv.code = "vec4 %s_%d_xyzw = %s_xyzw(%s);\n" % [ name, variant_index, name, uv ] - if slot == 0: - rv.f = "%s_%d_xyzw.z" % [ name, variant_index ] - elif slot == 1: - rv.f = "%s_%d_xyzw.w" % [ name, variant_index ] - else: - rv.rgb = "rand3(fract(%s_%d_xyzw.xy))" % [ name, variant_index ] - return rv - -func _on_offset_changed(): - update_shaders() diff --git a/addons/material_maker/nodes/voronoi/voronoi.tscn b/addons/material_maker/nodes/voronoi/voronoi.tscn deleted file mode 100644 index 71973b2..0000000 --- a/addons/material_maker/nodes/voronoi/voronoi.tscn +++ /dev/null @@ -1,255 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://addons/material_maker/nodes/voronoi/voronoi.gd" type="Script" id=1] - - -[sub_resource type="Theme" id=1] - - -[node name="Voronoi" type="GraphNode" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1.0 -margin_top = 2.0 -margin_right = 172.0 -margin_bottom = 105.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -theme = SubResource( 1 ) -title = "Voronoi" -offset = Vector2( 0, 0 ) -show_close = true -resizable = false -selected = false -comment = false -overlay = 0 -slot/0/left_enabled = false -slot/0/left_type = 0 -slot/0/left_color = Color( 0.5, 0.5, 1, 1 ) -slot/0/right_enabled = true -slot/0/right_type = 0 -slot/0/right_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/1/left_enabled = false -slot/1/left_type = 0 -slot/1/left_color = Color( 0.498039, 0.498039, 1, 1 ) -slot/1/right_enabled = true -slot/1/right_type = 0 -slot/1/right_color = Color( 0.756863, 0.756863, 0.756863, 1 ) -slot/2/left_enabled = false -slot/2/left_type = 0 -slot/2/left_color = Color( 0.498039, 0.498039, 1, 1 ) -slot/2/right_enabled = true -slot/2/right_type = 0 -slot/2/right_color = Color( 0.498039, 0.498039, 1, 1 ) -script = ExtResource( 1 ) -_sections_unfolded = [ "Theme", "slot", "slot/0", "slot/1", "slot/2" ] - -[node name="HBoxContainer1" type="HBoxContainer" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 24.0 -margin_right = 155.0 -margin_bottom = 48.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Size Flags" ] - -[node name="Label1" type="Label" parent="HBoxContainer1" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 61.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Scale X:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Anchor", "Size Flags" ] - -[node name="scale_x" type="SpinBox" parent="HBoxContainer1" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 65.0 -margin_right = 139.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 8 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Anchor", "Caret", "Focus", "Grow Direction", "Hint", "Margin", "Mouse", "Placeholder", "Rect", "Size Flags" ] - -[node name="HBoxContainer2" type="HBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 48.0 -margin_right = 155.0 -margin_bottom = 72.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label2" type="Label" parent="HBoxContainer2" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 61.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Scale Y:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Size Flags" ] - -[node name="scale_y" type="SpinBox" parent="HBoxContainer2" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 65.0 -margin_right = 139.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 8 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 32.0 -step = 1.0 -page = 0.0 -value = 4.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder", "Size Flags" ] - -[node name="HBoxContainer3" type="HBoxContainer" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 16.0 -margin_top = 73.0 -margin_right = 155.0 -margin_bottom = 97.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 - -[node name="Label3" type="Label" parent="HBoxContainer3" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 5.0 -margin_right = 61.0 -margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 3 -size_flags_vertical = 4 -text = "Intensity:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Size Flags" ] - -[node name="intensity" type="SpinBox" parent="HBoxContainer3" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 65.0 -margin_right = 139.0 -margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 8 -size_flags_vertical = 1 -min_value = 0.0 -max_value = 3.0 -step = 0.05 -page = 0.0 -value = 1.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -_sections_unfolded = [ "Caret", "Placeholder", "Size Flags" ] - -[connection signal="offset_changed" from="." to="." method="_on_offset_changed"] - -