2018-08-05 18:46:23 +02:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2018-07-22 17:20:27 +02:00
|
|
|
|
2018-09-03 21:35:44 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/pm_editor.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://addons/material_maker/graph_edit.tscn" type="PackedScene" id=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/preview.tscn" type="PackedScene" id=3]
|
2018-07-25 06:20:36 +02:00
|
|
|
|
2018-08-07 09:31:41 +02:00
|
|
|
[sub_resource type="Shader" id=5]
|
2018-07-24 08:04:25 +02:00
|
|
|
|
2018-07-25 06:20:36 +02:00
|
|
|
code = "shader_type canvas_item;
|
2018-07-24 08:04:25 +02:00
|
|
|
|
|
|
|
void fragment() {
|
2018-07-25 06:20:36 +02:00
|
|
|
COLOR = vec4(1.0);
|
2018-07-24 08:04:25 +02:00
|
|
|
}
|
|
|
|
"
|
|
|
|
_sections_unfolded = [ "Resource" ]
|
|
|
|
|
2018-08-07 09:31:41 +02:00
|
|
|
[sub_resource type="ShaderMaterial" id=6]
|
2018-07-24 08:04:25 +02:00
|
|
|
|
|
|
|
render_priority = 0
|
2018-08-07 09:31:41 +02:00
|
|
|
shader = SubResource( 5 )
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[sub_resource type="Animation" id=3]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
|
|
|
length = 0.2
|
|
|
|
loop = false
|
|
|
|
step = 0.1
|
|
|
|
tracks/0/type = "value"
|
2018-08-05 18:46:23 +02:00
|
|
|
tracks/0/path = NodePath(".:rect_position")
|
2018-07-28 21:21:05 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
2018-08-03 08:16:38 +02:00
|
|
|
"values": [ Vector2( 3, 251 ), Vector2( 2, 2 ) ]
|
2018-07-28 21:21:05 +02:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
2018-08-05 18:46:23 +02:00
|
|
|
tracks/1/path = NodePath(".:rect_size")
|
2018-07-28 21:21:05 +02:00
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
2018-08-03 08:16:38 +02:00
|
|
|
"values": [ Vector2( 96, 96 ), Vector2( 346, 346 ) ]
|
2018-07-28 21:21:05 +02:00
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/path = NodePath("MaterialPreview:render_target_update_mode")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PoolRealArray( 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 0 ]
|
|
|
|
}
|
2018-07-26 00:08:34 +02:00
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[sub_resource type="Animation" id=4]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
|
|
|
length = 0.2
|
|
|
|
loop = false
|
|
|
|
step = 0.1
|
|
|
|
tracks/0/type = "value"
|
2018-08-05 18:46:23 +02:00
|
|
|
tracks/0/path = NodePath(".:rect_position")
|
2018-07-28 21:21:05 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
2018-08-03 08:16:38 +02:00
|
|
|
"values": [ Vector2( 2, 2 ), Vector2( 2, 252 ) ]
|
2018-07-28 21:21:05 +02:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
2018-08-05 18:46:23 +02:00
|
|
|
tracks/1/path = NodePath(".:rect_size")
|
2018-07-28 21:21:05 +02:00
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
2018-08-03 08:16:38 +02:00
|
|
|
"values": [ Vector2( 346, 346 ), Vector2( 96, 96 ) ]
|
2018-07-28 21:21:05 +02:00
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/path = NodePath("MaterialPreview:render_target_update_mode")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 3 ]
|
|
|
|
}
|
|
|
|
|
2018-08-07 09:31:41 +02:00
|
|
|
[node name="ProceduralMaterialEditor" type="MarginContainer" index="0"]
|
2018-07-22 17:20:27 +02:00
|
|
|
|
|
|
|
anchor_left = 0.0
|
|
|
|
anchor_top = 0.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2018-08-01 07:50:58 +02:00
|
|
|
margin_bottom = -2.0
|
|
|
|
rect_min_size = Vector2( 500, 300 )
|
2018-07-22 17:20:27 +02:00
|
|
|
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
|
|
|
|
custom_constants/margin_left = 0
|
|
|
|
script = ExtResource( 1 )
|
2018-08-01 07:50:58 +02:00
|
|
|
_sections_unfolded = [ "Rect" ]
|
2018-07-22 17:20:27 +02:00
|
|
|
|
2018-08-04 08:05:34 +02:00
|
|
|
[node name="GraphEdit" parent="." index="0" instance=ExtResource( 2 )]
|
2018-07-29 23:43:24 +02:00
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
anchor_right = 0.0
|
|
|
|
anchor_bottom = 0.0
|
|
|
|
margin_right = 1280.0
|
|
|
|
margin_bottom = 718.0
|
|
|
|
|
2018-08-01 07:50:58 +02:00
|
|
|
[node name="Preview" type="Container" parent="." index="1"]
|
2018-07-25 06:20:36 +02:00
|
|
|
|
|
|
|
anchor_left = 0.0
|
|
|
|
anchor_top = 0.0
|
|
|
|
anchor_right = 0.0
|
|
|
|
anchor_bottom = 0.0
|
2018-08-03 08:16:38 +02:00
|
|
|
margin_right = 1280.0
|
|
|
|
margin_bottom = 718.0
|
2018-07-25 06:20:36 +02:00
|
|
|
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 = 1
|
|
|
|
_sections_unfolded = [ "Mouse" ]
|
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[node name="Preview" parent="Preview" index="0" instance=ExtResource( 3 )]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-07-29 19:19:35 +02:00
|
|
|
[node name="SelectedPreview" type="ColorRect" parent="Preview/Preview" index="4"]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-08-07 09:31:41 +02:00
|
|
|
visible = false
|
|
|
|
material = SubResource( 6 )
|
2018-07-24 08:04:25 +02:00
|
|
|
anchor_left = 0.0
|
|
|
|
anchor_top = 0.0
|
|
|
|
anchor_right = 0.0
|
|
|
|
anchor_bottom = 0.0
|
2018-07-28 21:21:05 +02:00
|
|
|
margin_left = 2.0
|
2018-08-07 09:31:41 +02:00
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 348.0
|
2018-08-03 08:16:38 +02:00
|
|
|
margin_bottom = 348.0
|
|
|
|
rect_min_size = Vector2( 96, 96 )
|
2018-07-24 08:04:25 +02:00
|
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
|
|
rect_clip_content = false
|
2018-07-28 21:21:05 +02:00
|
|
|
mouse_filter = 0
|
2018-07-24 08:04:25 +02:00
|
|
|
mouse_default_cursor_shape = 0
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
size_flags_vertical = 0
|
|
|
|
color = Color( 1, 1, 1, 1 )
|
2018-08-03 08:16:38 +02:00
|
|
|
_sections_unfolded = [ "Material", "Mouse", "Rect" ]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[node name="SelectedPreviewAnimation" type="AnimationPlayer" parent="Preview/Preview/SelectedPreview" index="0"]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
|
|
|
root_node = NodePath("..")
|
|
|
|
autoplay = ""
|
|
|
|
playback_process_mode = 1
|
|
|
|
playback_default_blend_time = 0.0
|
|
|
|
playback_speed = 1.0
|
2018-08-05 18:46:23 +02:00
|
|
|
anims/maximize = SubResource( 3 )
|
|
|
|
anims/minimize = SubResource( 4 )
|
2018-07-28 21:21:05 +02:00
|
|
|
blend_times = [ ]
|
2018-07-24 08:04:25 +02:00
|
|
|
|
2018-07-28 09:37:51 +02:00
|
|
|
[connection signal="graph_changed" from="GraphEdit" to="." method="generate_shader"]
|
|
|
|
|
2018-07-24 08:04:25 +02:00
|
|
|
[connection signal="node_selected" from="GraphEdit" to="." method="_on_GraphEdit_node_selected"]
|
|
|
|
|
2018-07-22 17:20:27 +02:00
|
|
|
[connection signal="popup_request" from="GraphEdit" to="." method="_on_GraphEdit_popup_request"]
|
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[connection signal="save_path_changed" from="GraphEdit" to="." method="set_save_path"]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-08-05 18:46:23 +02:00
|
|
|
[connection signal="gui_input" from="Preview/Preview/SelectedPreview" to="." method="_on_SelectedPreview_gui_input"]
|
2018-07-28 21:21:05 +02:00
|
|
|
|
2018-07-22 17:20:27 +02:00
|
|
|
|