mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
1bbbd43596
Added a node that adjusts hue, saturation and value. Added support for HSlider as control in nodes.
257 lines
5.7 KiB
Plaintext
257 lines
5.7 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/procedural_material/nodes/adjust_hsv.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="Theme" id=1]
|
|
|
|
|
|
[node name="AdjustHSV" 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 = 111.0
|
|
margin_bottom = 74.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 = "AdjustHSV"
|
|
offset = Vector2( 0, 0 )
|
|
show_close = true
|
|
resizable = false
|
|
selected = false
|
|
comment = false
|
|
overlay = 0
|
|
slot/0/left_enabled = true
|
|
slot/0/left_type = 0
|
|
slot/0/left_color = Color( 0.498039, 0.498039, 1, 1 )
|
|
slot/0/right_enabled = true
|
|
slot/0/right_type = 0
|
|
slot/0/right_color = Color( 0.494118, 0.494118, 1, 1 )
|
|
slot/1/left_enabled = false
|
|
slot/1/left_type = 0
|
|
slot/1/left_color = Color( 0.756863, 0.756863, 0.756863, 1 )
|
|
slot/1/right_enabled = false
|
|
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.756863, 0.756863, 0.756863, 1 )
|
|
slot/2/right_enabled = false
|
|
slot/2/right_type = 0
|
|
slot/2/right_color = Color( 0.756863, 0.756863, 0.756863, 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 = 184.0
|
|
margin_bottom = 40.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="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 = 1.0
|
|
margin_right = 64.0
|
|
margin_bottom = 15.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 = "Hue"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="hue" type="HSlider" parent="HBoxContainer1" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 68.0
|
|
margin_right = 168.0
|
|
margin_bottom = 16.0
|
|
rect_min_size = Vector2( 100, 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.5
|
|
max_value = 0.5
|
|
step = 0.02
|
|
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 = [ "Rect" ]
|
|
|
|
[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 = 40.0
|
|
margin_right = 184.0
|
|
margin_bottom = 56.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="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 = 1.0
|
|
margin_right = 64.0
|
|
margin_bottom = 15.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 = "Saturation"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="saturation" type="HSlider" parent="HBoxContainer2" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 68.0
|
|
margin_right = 168.0
|
|
margin_bottom = 16.0
|
|
rect_min_size = Vector2( 100, 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 = 2.0
|
|
step = 0.1
|
|
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 = [ "Rect" ]
|
|
|
|
[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 = 57.0
|
|
margin_right = 184.0
|
|
margin_bottom = 73.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="Label" type="Label" parent="HBoxContainer3" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 1.0
|
|
margin_right = 64.0
|
|
margin_bottom = 15.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 = "Value"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="value" type="HSlider" parent="HBoxContainer3" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 68.0
|
|
margin_right = 168.0
|
|
margin_bottom = 16.0
|
|
rect_min_size = Vector2( 100, 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 = 2.0
|
|
step = 0.1
|
|
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 = [ "Rect" ]
|
|
|
|
|