mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
26720e74e9
Updated Transform so it accepts a greyscale input per parameter. For each pixel, the parameter is multiplied by 2*v-1 (v being the value of the input's pixel) which makes it possible to affect the strength of each transform using an input image. New effects such as whirl and color guided offsets are now possible. Added Decompose node (does the opposite of combine). Used another color for inputs/outputs that expect/generate a greyscale image.
193 lines
4.6 KiB
Plaintext
193 lines
4.6 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/procedural_material/nodes/blend.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="Theme" id=1]
|
|
|
|
|
|
[node name="Blend" 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 = 160.0
|
|
margin_bottom = 104.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 = "Blend"
|
|
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 = true
|
|
slot/1/left_type = 0
|
|
slot/1/left_color = Color( 0.5, 0.5, 1, 1 )
|
|
slot/1/right_enabled = false
|
|
slot/1/right_type = 0
|
|
slot/1/right_color = Color( 0.5, 0.5, 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/right_enabled = false
|
|
slot/2/right_type = 0
|
|
slot/2/right_color = Color( 0.5, 0.5, 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 )
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Mouse", "Theme", "slot", "slot/1", "slot/3" ]
|
|
|
|
[node name="blend_type" 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 = 143.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 = "Normal"
|
|
flat = false
|
|
align = 0
|
|
items = [ "Normal", null, false, 0, null, "Dissolve", null, false, 1, null, "Multiply", null, false, 2, null, "Screen", null, false, 3, null, "Overlay", null, false, 4, null, "Hard Light", null, false, 5, null, "Soft Light", null, false, 6, null, "Burn", null, false, 7, null, "Dodge", null, false, 8, null, "Lighten", null, false, 9, null, "Darken", null, false, 10, null, "Difference", null, false, 11, null ]
|
|
selected = 0
|
|
|
|
[node name="Label1" type="Label" 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 = 143.0
|
|
margin_bottom = 58.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 = "Source 1"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="Label2" type="Label" 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 = 59.0
|
|
margin_right = 143.0
|
|
margin_bottom = 73.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 = "Source 2"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="HBoxContainer" 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 = 74.0
|
|
margin_right = 143.0
|
|
margin_bottom = 98.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="HBoxContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 5.0
|
|
margin_right = 49.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 = "Opacity"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="amount" type="SpinBox" parent="HBoxContainer" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 53.0
|
|
margin_right = 127.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 = 1.0
|
|
step = 0.05
|
|
page = 0.0
|
|
value = 0.5
|
|
exp_edit = false
|
|
rounded = false
|
|
editable = true
|
|
prefix = ""
|
|
suffix = ""
|
|
|
|
|