diff --git a/viewport/gui_in_3d/Gui_in_3D.tscn b/viewport/gui_in_3d/Gui_in_3D.tscn deleted file mode 100644 index 5a94b583..00000000 --- a/viewport/gui_in_3d/Gui_in_3D.tscn +++ /dev/null @@ -1,526 +0,0 @@ -[gd_scene load_steps=16 format=2] - -[ext_resource path="res://gui_3d.gd" type="Script" id=1] -[ext_resource path="res://icon.png" type="Texture" id=2] - -[sub_resource type="PlaneMesh" id=1] - -custom_aabb = AABB( 0, 0, 0, 0, 0, 0 ) -size = Vector2( 3, 2 ) -subdivide_width = 0 -subdivide_depth = 0 - -[sub_resource type="ViewportTexture" id=2] - -resource_local_to_scene = true -flags = 5 -viewport_path = NodePath("Viewport") - -[sub_resource type="SpatialMaterial" id=3] -resource_local_to_scene = true -render_priority = 0 -flags_transparent = true -flags_unshaded = true -flags_albedo_tex_force_srgb = true -params_diffuse_mode = 1 -albedo_texture = SubResource( 2 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 -roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = true -emission = Color( 0, 0, 0, 1 ) -emission_energy = 1.0 -emission_operator = 0 -emission_on_uv2 = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false -_sections_unfolded = [ "Albedo", "Flags" ] - -[sub_resource type="GDScript" id=4] - -script/source = "tool -extends Object -func e(): - return 0.01 -" - -[sub_resource type="BoxShape" id=5] - -extents = Vector3( 1.5, 1, 0.01 ) -script = SubResource( 4 ) - -[sub_resource type="Animation" id=6] -length = 6.0 -loop = true -tracks/0/type = "value" -tracks/0/path = NodePath("Camera:transform") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/keys = { -"times": PoolRealArray( 0, 2, 4, 6 ), -"transitions": PoolRealArray( 1, 1, 1, 1 ), -"update": 0, -"values": [ Transform( 0.994592, 0, 0.103856, 0, 1, 0, -0.103856, 0, 0.994592, 0.465682, 0, 1.78523 ), Transform( 0.962984, 0, -0.269557, 0, 1, 0, 0.269557, 0, 0.962984, -0.462237, 0, 2.41934 ), Transform( 0.806599, 0, -0.591098, 0, 1, 0, 0.591098, 0, 0.806599, -1.59502, 0, 2.05358 ), Transform( 0.994592, 0, 0.103856, 0, 1, 0, -0.103856, 0, 0.994592, 0.465682, 0, 1.78523 ) ] -} - -[sub_resource type="PlaneMesh" id=7] - -custom_aabb = AABB( 0, 0, 0, 0, 0, 0 ) -size = Vector2( 2, 2 ) -subdivide_width = 0 -subdivide_depth = 0 - -[sub_resource type="GDScript" id=8] - -script/source = "tool -extends Object -func e(): - return 0 -" - -[sub_resource type="GDScript" id=9] - -script/source = "tool -extends Object -func e(): - return 90 -" - -[sub_resource type="GDScript" id=10] - -script/source = "tool -extends Object -func e(): - return 0 -" - -[sub_resource type="CubeMesh" id=11] - -custom_aabb = AABB( 0, 0, 0, 0, 0, 0 ) -size = Vector3( 2, 2, 2 ) -subdivide_width = 0 -subdivide_height = 0 -subdivide_depth = 0 - -[sub_resource type="SpatialMaterial" id=12] -albedo_color = Color( 0.722656, 0.791992, 1, 1 ) -roughness = 0.0 - -[sub_resource type="GDScript" id=13] - -script/source = "tool -extends Object -func e(): - return 0 -" - -[node name="Gui_in_3D" type="Spatial"] -script = ExtResource( 1 ) -quad_mesh_size = Vector2( 3, 2 ) -quad_node_scale = 1 - -[node name="Viewport" type="Viewport" parent="."] -editor/display_folded = true -arvr = false -size = Vector2( 280, 180 ) -own_world = false -world = null -transparent_bg = true -hdr = false -usage = 0 -render_target_v_flip = true -render_target_clear_mode = 0 -render_target_update_mode = 2 -audio_listener_enable_2d = false -audio_listener_enable_3d = false -physics_object_picking = false -gui_disable_input = false -gui_snap_controls_to_pixels = true -shadow_atlas_size = 0 -shadow_atlas_quad_0 = 2 -shadow_atlas_quad_1 = 2 -shadow_atlas_quad_2 = 3 -shadow_atlas_quad_3 = 4 -_sections_unfolded = [ "Render Target", "Rendering" ] - -[node name="GUI" type="Control" parent="Viewport" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 280.0 -margin_bottom = 180.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 -_sections_unfolded = [ "Mouse", "Rect" ] - -[node name="Panel" type="Panel" parent="Viewport/GUI" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 1.0 -anchor_bottom = 1.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 -_sections_unfolded = [ "Rect" ] - -[node name="Label" type="Label" parent="Viewport/GUI" index="1"] - -[node name="Label" type="Label" parent="Viewport/GUI"] -margin_left = 44.0 -margin_top = 27.0 -margin_right = 121.0 -margin_bottom = 41.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 = "Hello world!" - -[node name="Button" type="Button" parent="Viewport/GUI" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 14.0 -margin_top = 46.0 -margin_right = 154.0 -margin_bottom = 74.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 -text = "A button!" -flat = false -align = 1 -_sections_unfolded = [ "Rect" ] - -[node name="TextEdit" type="LineEdit" parent="Viewport/GUI" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 14.0 -margin_top = 87.0 -margin_right = 154.0 -margin_bottom = 111.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 -size_flags_horizontal = 1 -size_flags_vertical = 1 -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -_sections_unfolded = [ "Rect" ] - -[node name="HSlider" type="HSlider" parent="Viewport/GUI" index="4"] - -[node name="HSlider" type="HSlider" parent="Viewport/GUI"] -margin_left = 14.0 -margin_top = 118.0 -margin_right = 154.0 -margin_bottom = 134.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 = 100.0 -step = 1.0 -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="ColorRect" type="ColorRect" parent="Viewport/GUI" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 180.0 -margin_top = 26.0 -margin_right = 244.0 -margin_bottom = 90.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 -color = Color( 1, 0, 0, 1 ) -_sections_unfolded = [ "Rect" ] - -[node name="TextureRect" type="TextureRect" parent="Viewport/GUI/ColorRect" index="0"] - -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -20.0 -margin_top = -20.0 -margin_right = 20.0 -margin_bottom = 20.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 -texture = ExtResource( 2 ) -expand = true -stretch_mode = 0 - -[node name="VSlider" type="VSlider" parent="Viewport/GUI" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 260.0 -margin_top = 26.0 -margin_right = 276.0 -margin_bottom = 166.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 = 0 -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 -tick_count = 0 -ticks_on_borders = false -focus_mode = 2 -_sections_unfolded = [ "Rect" ] - -[node name="OptionButton" type="OptionButton" parent="Viewport/GUI" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 170.0 -margin_top = 111.0 -margin_right = 252.0 -margin_bottom = 165.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 = "Item 0" -flat = false -align = 0 -items = [ "Item 0", null, false, -1, null, "Item 1", null, false, -1, null, "Item 2", null, false, -1, null ] -selected = 0 -_sections_unfolded = [ "Rect" ] - -[node name="Area" type="Area" parent="." index="1"] - -[node name="Area" type="Area" parent="."] -input_ray_pickable = true -input_capture_on_drag = true - -space_override = 0 -gravity_point = false -gravity_distance_scale = 0.0 -gravity_vec = Vector3( 0, -1, 0 ) -gravity = 9.8 -linear_damp = 0.1 -angular_damp = 1.0 -priority = 0.0 -monitoring = true -monitorable = true -collision_layer = 1 -collision_mask = 1 -audio_bus_override = false -audio_bus_name = "Master" -reverb_bus_enable = false -reverb_bus_name = "Master" -reverb_bus_amount = 0.0 -reverb_bus_uniformity = 0.0 -_sections_unfolded = [ "Transform" ] - -[node name="Quad" type="MeshInstance" parent="Area" index="0"] - -transform = Transform( -1, -1.50996e-007, -6.60024e-015, 0, -4.37114e-008, 1, -1.50996e-007, 1, 4.37114e-008, 0, 0, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 -mesh = SubResource( 1 ) -material/0 = SubResource( 3 ) - -[node name="CollisionShape" type="CollisionShape" parent="Area"] -shape = SubResource( 5 ) - -[node name="Camera" type="Camera" parent="."] -transform = Transform( 0.994592, 0, 0.103856, 0, 1, 0, -0.103856, 0, 0.994592, 0.465682, 0, 1.78523 ) -fov = 74.0 -near = 0.1 - -[node name="OmniLight" type="OmniLight" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.38866, 1.2413, 2.72141 ) -shadow_enabled = true -omni_range = 10.0 - -[node name="Camera_Move" type="AnimationPlayer" parent="."] -autoplay = "Move_camera" -playback_process_mode = 1 -playback_default_blend_time = 0.0 -playback_speed = 0.25 -anims/Move_camera = SubResource( 6 ) -blend_times = [ ] -_sections_unfolded = [ "Playback Options" ] - -[node name="3D_background" type="Spatial" parent="." index="5"] - -[node name="3D_background" type="Spatial" parent="."] -editor/display_folded = true - -[node name="Wall" type="MeshInstance" parent="3D_background" index="0"] - -transform = Transform( 4, 0, 0, 0, -1.74846e-007, -4, 0, 4, -1.74846e-007, -2.60819, 0.589247, -2.08943 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 -mesh = SubResource( 7 ) -material/0 = null -script = SubResource( 8 ) - -transform = Transform( 4, 0, 0, 0, -1.74846e-007, -4, 0, 4, -1.74846e-007, 5.08055, 0.589247, -2.08943 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 -mesh = SubResource( 7 ) -material/0 = null -script = SubResource( 8 ) - -transform = Transform( -1.74846e-007, -4, 0, -1.74846e-007, 7.64274e-015, -4, 4, -1.74846e-007, -1.74846e-007, 9.04446, 0.589247, 1.62058 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 -mesh = SubResource( 7 ) -material/0 = null -script = SubResource( 9 ) - -[node name="Floor" type="MeshInstance" parent="3D_background"] -transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, -2.60819, -2.68765, 1.46502 ) -mesh = SubResource( 7 ) -material/0 = null -script = SubResource( 10 ) - -[node name="Floor2" type="MeshInstance" parent="3D_background"] -transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 5.08055, -2.68765, 1.46502 ) -mesh = SubResource( 7 ) -material/0 = null -script = SubResource( 10 ) - -[node name="Cube" type="MeshInstance" parent="3D_background"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.25901, -0.598608, 0.374871 ) -mesh = SubResource( 11 ) -material/0 = SubResource( 12 ) -script = SubResource( 13 ) - -[node name="Cube2" type="MeshInstance" parent="3D_background"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.88761, 2.01326, 0.374871 ) -mesh = SubResource( 11 ) -material/0 = SubResource( 12 ) -script = SubResource( 13 ) -_sections_unfolded = [ "Transform" ] -