[gd_scene load_steps=7 format=3 uid="uid://mapgeissworld1"]
[ext_resource type="Script" path="res://scenes/maps/map_geiss_world.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://teleporter01" path="res://scenes/teleporter/teleporter.tscn" id="2"]
; The terrain was invisible without this: map_core takes its sky from
; /root/Game/Sky3DExtended, which only exists under the full game, and a DCTerrain
; with no custom_material renders unlit. map_dc_erosion sets one; this did not.
[sub_resource type="StandardMaterial3D" id="geiss_mat"]
albedo_color = Color(0.62, 0.58, 0.47, 1)
roughness = 0.95
metallic = 0.0
[sub_resource type="ProceduralSkyMaterial" id="geiss_skymat"]
sky_top_color = Color(0.16, 0.32, 0.59, 1)
sky_horizon_color = Color(0.55, 0.62, 0.72, 1)
ground_bottom_color = Color(0.2, 0.18, 0.15, 1)
ground_horizon_color = Color(0.55, 0.62, 0.72, 1)
[sub_resource type="Sky" id="geiss_sky"]
sky_material = SubResource("geiss_skymat")
[sub_resource type="Environment" id="geiss_env"]
background_mode = 2
sky = SubResource("geiss_sky")
ambient_light_source = 3
ambient_light_sky_contribution = 1.0
tonemap_mode = 2
[node name="MapGeissWorld" type="Node3D"]
script = ExtResource("1")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("geiss_env")
; DCTerrain properties live IN THE SCENE, not in _ready(): every setter is
; DC_SET_CONFIG and calls rebuild() on change, so writing them from a script
; fires one rebuild each and the mesher restarts before it converges.
; `generator` is the exception, being an object, and is set in the script.
;
; voxel_size 0.5: the Geiss lumps draped on the terraces need it (as map_geiss);
; the terraces' 10-40 m risers are far coarser. octree_depth 16 gives a 229 km root span,
; so the unbounded field streams without an edge.
[node name="DCTerrain" type="DCTerrain" parent="."]
use_gpu = true
use_noise = true
voxel_size = 0.5
octree_depth = 16
debug_lod_colors = false
custom_material = SubResource("geiss_mat")
[node name="Sun" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.87, -0.34, 0.35, 0, 0.72, 0.7, -0.49, -0.61, 0.62, 0, 60, 0)
light_energy = 1.2
shadow_enabled = true
[node name="SpawnPoint" type="Marker3D" parent="." groups=["spawn_points"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 16)
[node name="TeleporterToHome" parent="." instance=ExtResource("2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 16)
target_map = "res://scenes/maps/map_dev_hub.tscn"
label_text = "Dev Maps"
; Brushes are built here (map_dc_level, level_import off): an empty level.
[node name="DCLevel" type="DCLevel" parent="."]