2019-10-14 20:42:11 +02:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2018-09-03 21:35:44 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/main_window.gd" type="Script" id=1]
|
2019-10-08 22:17:33 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/library.tscn" type="PackedScene" id=2]
|
2018-09-03 21:35:44 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/preview.tscn" type="PackedScene" id=3]
|
2019-10-14 20:42:11 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/panoramas/epping_forest_01.hdr" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://addons/material_maker/widgets/tabs.gd" type="Script" id=5]
|
|
|
|
[ext_resource path="res://addons/material_maker/engine/renderer.tscn" type="PackedScene" id=6]
|
|
|
|
[ext_resource path="res://addons/material_maker/node_factory.gd" type="Script" id=7]
|
|
|
|
|
2019-10-16 23:15:11 +02:00
|
|
|
[sub_resource type="PanoramaSky" id=1]
|
2019-10-14 20:42:11 +02:00
|
|
|
resource_local_to_scene = true
|
|
|
|
panorama = ExtResource( 4 )
|
|
|
|
|
2019-10-16 23:15:11 +02:00
|
|
|
[sub_resource type="Environment" id=2]
|
2019-10-14 20:42:11 +02:00
|
|
|
background_mode = 2
|
2019-10-16 23:15:11 +02:00
|
|
|
background_sky = SubResource( 1 )
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="MainWindow" type="Panel"]
|
2018-08-04 08:05:34 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2018-08-05 18:46:23 +02:00
|
|
|
script = ExtResource( 1 )
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
2018-08-04 08:05:34 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="Menu" type="HBoxContainer" parent="VBoxContainer"]
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 1280.0
|
2018-08-04 08:05:34 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="File" type="MenuButton" parent="VBoxContainer/Menu"]
|
2018-08-04 08:05:34 +02:00
|
|
|
margin_right = 35.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "File"
|
2019-04-13 19:44:37 +02:00
|
|
|
items = [ "New material", null, 0, false, false, 0, 0, null, "", false, "Load material", null, 0, false, false, 1, 268435535, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Save material", null, 0, false, false, 4, 268435539, null, "", false, "Save material as...", null, 0, false, false, 5, 301989971, null, "", false, "Save all materials...", null, 0, false, false, 6, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Export material", null, 0, false, false, 8, 268435525, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Close material", null, 0, false, false, 10, 0, null, "", false, "Quit", null, 0, false, false, 11, 268435537, null, "", false ]
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="Edit" type="MenuButton" parent="VBoxContainer/Menu"]
|
2018-08-04 08:05:34 +02:00
|
|
|
margin_left = 39.0
|
2018-08-07 09:31:41 +02:00
|
|
|
margin_right = 75.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Edit"
|
2019-04-13 19:44:37 +02:00
|
|
|
items = [ "Cut", null, 0, false, false, 12, 268435544, null, "", false, "Copy", null, 0, false, false, 13, 268435523, null, "", false, "Paste", null, 0, false, false, 14, 268435542, null, "", false ]
|
2018-08-07 09:31:41 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="Tools" type="MenuButton" parent="VBoxContainer/Menu"]
|
2018-08-07 09:31:41 +02:00
|
|
|
margin_left = 79.0
|
|
|
|
margin_right = 125.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Tools"
|
2019-10-07 20:41:57 +02:00
|
|
|
items = [ "Create", null, 0, false, false, -1, 0, null, "PopupMenu", false, "Create group", null, 0, false, false, 16, 268435527, null, "", false, "Make selected nodes editable", null, 0, false, false, 17, 268435526, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Add selected node to user library", null, 0, false, false, 19, 0, null, "", false, "Save user library", null, 0, false, false, 20, 0, null, "", false ]
|
2018-08-07 09:31:41 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="Help" type="MenuButton" parent="VBoxContainer/Menu"]
|
2018-08-07 09:31:41 +02:00
|
|
|
margin_left = 129.0
|
|
|
|
margin_right = 171.0
|
2018-08-04 08:05:34 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Help"
|
2019-10-07 20:41:57 +02:00
|
|
|
items = [ "User manual", null, 0, false, false, 21, 0, null, "", false, "Report a bug", null, 0, false, false, 22, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "About", null, 0, false, false, 24, 0, null, "", false ]
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="HBoxContainer" type="HSplitContainer" parent="VBoxContainer"]
|
2018-08-04 08:05:34 +02:00
|
|
|
margin_top = 24.0
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 1280.0
|
|
|
|
margin_bottom = 720.0
|
2018-08-04 08:05:34 +02:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="VBoxContainer" type="VSplitContainer" parent="VBoxContainer/HBoxContainer"]
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 314.0
|
|
|
|
margin_bottom = 696.0
|
2018-08-05 18:46:23 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2019-10-08 22:17:33 +02:00
|
|
|
[node name="Library" parent="VBoxContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 2 )]
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 314.0
|
2019-10-08 22:17:33 +02:00
|
|
|
margin_bottom = 411.0
|
2018-08-05 18:46:23 +02:00
|
|
|
size_flags_vertical = 3
|
2019-10-08 22:17:33 +02:00
|
|
|
size_flags_stretch_ratio = 1.5
|
2018-08-05 18:46:23 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="Preview" parent="VBoxContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 3 )]
|
2018-08-05 18:46:23 +02:00
|
|
|
anchor_left = 0.0
|
|
|
|
anchor_right = 0.0
|
|
|
|
margin_left = 0.0
|
2019-10-08 22:17:33 +02:00
|
|
|
margin_top = 423.0
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 314.0
|
|
|
|
margin_bottom = 696.0
|
2019-04-13 19:44:37 +02:00
|
|
|
|
2019-09-29 21:53:32 +02:00
|
|
|
[node name="ProjectsPane" type="Control" parent="VBoxContainer/HBoxContainer"]
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_left = 326.0
|
|
|
|
margin_right = 1280.0
|
|
|
|
margin_bottom = 696.0
|
2018-08-05 18:46:23 +02:00
|
|
|
size_flags_horizontal = 3
|
2018-08-04 08:05:34 +02:00
|
|
|
size_flags_vertical = 3
|
2018-08-05 18:46:23 +02:00
|
|
|
size_flags_stretch_ratio = 3.0
|
2019-09-29 21:53:32 +02:00
|
|
|
|
|
|
|
[node name="BackgroundPreview" type="ViewportContainer" parent="VBoxContainer/HBoxContainer/ProjectsPane"]
|
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
stretch = true
|
|
|
|
|
|
|
|
[node name="Viewport" type="Viewport" parent="VBoxContainer/HBoxContainer/ProjectsPane/BackgroundPreview"]
|
|
|
|
size = Vector2( 954, 696 )
|
|
|
|
handle_input_locally = false
|
2019-10-17 14:55:42 +02:00
|
|
|
msaa = 2
|
2019-09-29 21:53:32 +02:00
|
|
|
render_target_update_mode = 0
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera" parent="VBoxContainer/HBoxContainer/ProjectsPane/BackgroundPreview/Viewport"]
|
2019-10-01 08:34:08 +02:00
|
|
|
transform = Transform( 1, 0, 0, 0, 0.766044, 0.642788, 0, -0.642788, 0.766044, 0, 2.24976, 2.68115 )
|
2019-10-16 23:15:11 +02:00
|
|
|
environment = SubResource( 2 )
|
2019-09-29 21:53:32 +02:00
|
|
|
current = true
|
|
|
|
|
|
|
|
[node name="Projects" type="Panel" parent="VBoxContainer/HBoxContainer/ProjectsPane"]
|
|
|
|
self_modulate = Color( 1, 1, 1, 0 )
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2019-10-14 20:42:11 +02:00
|
|
|
script = ExtResource( 5 )
|
2018-08-27 17:22:57 +02:00
|
|
|
|
2019-09-29 21:53:32 +02:00
|
|
|
[node name="Tabs" type="Tabs" parent="VBoxContainer/HBoxContainer/ProjectsPane/Projects"]
|
2019-07-31 20:53:00 +02:00
|
|
|
margin_right = 954.0
|
2019-04-13 19:44:37 +02:00
|
|
|
margin_bottom = 24.0
|
2018-08-04 08:05:34 +02:00
|
|
|
tab_align = 0
|
2018-08-27 17:22:57 +02:00
|
|
|
tab_close_display_policy = 1
|
2018-09-04 21:45:14 +02:00
|
|
|
|
2019-10-14 20:42:11 +02:00
|
|
|
[node name="Renderer" parent="." instance=ExtResource( 6 )]
|
|
|
|
size = Vector2( 512, 512 )
|
2019-09-25 23:29:06 +02:00
|
|
|
debug_path = null
|
2018-10-13 17:31:37 +02:00
|
|
|
|
2019-04-13 19:44:37 +02:00
|
|
|
[node name="NodeFactory" type="Node" parent="."]
|
2019-10-14 20:42:11 +02:00
|
|
|
script = ExtResource( 7 )
|
2019-09-29 10:07:32 +02:00
|
|
|
[connection signal="need_update" from="VBoxContainer/HBoxContainer/VBoxContainer/Preview" to="." method="update_preview_3d"]
|
2019-10-01 08:34:08 +02:00
|
|
|
[connection signal="show_background_preview" from="VBoxContainer/HBoxContainer/VBoxContainer/Preview" to="." method="_on_Preview_show_background_preview"]
|
2019-09-29 21:53:32 +02:00
|
|
|
[connection signal="no_more_tabs" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects" to="." method="new_material"]
|
|
|
|
[connection signal="resized" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects" method="_on_Projects_resized"]
|
|
|
|
[connection signal="tab_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects" to="." method="_on_Projects_tab_changed"]
|
|
|
|
[connection signal="connection_request" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit" method="connect_node"]
|
|
|
|
[connection signal="disconnection_request" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit" method="disconnect_node"]
|
|
|
|
[connection signal="close_request" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material" method="on_close_request"]
|
|
|
|
[connection signal="offset_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material" method="on_offset_changed"]
|
2019-10-01 23:15:36 +02:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer2/metallic" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer2/metallic" method="update_label"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer3/roughness" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer3/roughness" method="update_label"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer4/emission_energy" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer4/emission_energy" method="update_label"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer5/normal_scale" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer5/normal_scale" method="update_label"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer6/ao_light_affect" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer6/ao_light_affect" method="update_label"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer7/depth_scale" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects/GraphEdit/node_Material/HBoxContainer7/depth_scale" method="update_label"]
|
2019-09-29 21:53:32 +02:00
|
|
|
[connection signal="reposition_active_tab_request" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/Tabs" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects" method="move_active_tab_to"]
|
|
|
|
[connection signal="tab_changed" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/Tabs" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects" method="set_current_tab"]
|
|
|
|
[connection signal="tab_close" from="VBoxContainer/HBoxContainer/ProjectsPane/Projects/Tabs" to="VBoxContainer/HBoxContainer/ProjectsPane/Projects" method="close_tab"]
|