aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapView.tscn
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-03-13 01:04:19 +0100
committer hop311 <hop3114@gmail.com>2024-03-13 01:22:35 +0100
commit1d64ee9a6465e75381e40cb56098a8e728c685dc (patch)
treea65df845b8024a1635a0751a9297ebd81b212b65 /game/src/Game/GameSession/MapView.tscn
parent8ccddb71dd634ed3fbb31df9994f0a71dd1d81d1 (diff)
Add map background plane to hide transparent windowmap-background
Diffstat (limited to 'game/src/Game/GameSession/MapView.tscn')
-rw-r--r--game/src/Game/GameSession/MapView.tscn16
1 files changed, 14 insertions, 2 deletions
diff --git a/game/src/Game/GameSession/MapView.tscn b/game/src/Game/GameSession/MapView.tscn
index 0296156..bf22ef8 100644
--- a/game/src/Game/GameSession/MapView.tscn
+++ b/game/src/Game/GameSession/MapView.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=5 format=3 uid="uid://dkehmdnuxih2r"]
+[gd_scene load_steps=7 format=3 uid="uid://dkehmdnuxih2r"]
[ext_resource type="Script" path="res://src/Game/GameSession/MapView.gd" id="1_exccw"]
[ext_resource type="Shader" path="res://src/Game/GameSession/TerrainMap.gdshader" id="1_upocn"]
@@ -16,11 +16,19 @@ shader_parameter/overlay_tile_factor = null
[sub_resource type="MapMesh" id="MapMesh_3gtsd"]
-[node name="MapView" type="Node3D" node_paths=PackedStringArray("_camera", "_map_mesh_instance")]
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_irk50"]
+albedo_color = Color(0, 0, 0, 1)
+
+[sub_resource type="PlaneMesh" id="PlaneMesh_fnhgl"]
+material = SubResource("StandardMaterial3D_irk50")
+size = Vector2(6, 2)
+
+[node name="MapView" type="Node3D" node_paths=PackedStringArray("_camera", "_map_mesh_instance", "_map_background_instance")]
editor_description = "SS-73"
script = ExtResource("1_exccw")
_camera = NodePath("MapCamera")
_map_mesh_instance = NodePath("MapMeshInstance")
+_map_background_instance = NodePath("MapBackgroundInstance")
[node name="MapCamera" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0.25, 1.5, -2.75)
@@ -31,3 +39,7 @@ editor_description = "FS-343"
transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0)
material_override = SubResource("ShaderMaterial_tayeg")
mesh = SubResource("MapMesh_3gtsd")
+
+[node name="MapBackgroundInstance" type="MeshInstance3D" parent="."]
+transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, -1, 0)
+mesh = SubResource("PlaneMesh_fnhgl")