初始天空盒

This commit is contained in:
2026-09-22 00:07:58 +08:00
parent 8b6b5572be
commit 6e345bc296
6 changed files with 337 additions and 11 deletions
+7 -10
View File
@@ -1,6 +1,7 @@
[gd_scene format=3 uid="uid://bp8l1uwgshc86"]
[ext_resource type="PackedScene" uid="uid://bekuuw153mv03" path="res://player/player.tscn" id="1_gjxf3"]
[ext_resource type="Sky" path="res://world/sky/cartoon_sky.tres" id="2_cartoon"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hyim0"]
size = Vector3(40, 0.5, 40)
@@ -14,19 +15,11 @@ subdivide_depth = 8
albedo_color = Color(0.5529412, 0.5803922, 0.61960787, 1)
roughness = 0.9
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_cmo1i"]
sky_top_color = Color(0.38, 0.45, 0.55, 1)
sky_horizon_color = Color(0.65, 0.67, 0.7, 1)
ground_bottom_color = Color(0.2, 0.17, 0.13, 1)
ground_horizon_color = Color(0.65, 0.67, 0.7, 1)
[sub_resource type="Sky" id="Sky_i1eo7"]
sky_material = SubResource("ProceduralSkyMaterial_cmo1i")
[sub_resource type="Environment" id="Environment_gu74f"]
background_mode = 2
sky = SubResource("Sky_i1eo7")
sky = ExtResource("2_cartoon")
ambient_light_source = 3
reflected_light_source = 2
[node name="Main" type="Node3D" unique_id=58155864]
@@ -42,6 +35,10 @@ surface_material_override/0 = SubResource("StandardMaterial3D_spvjk")
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=910400852]
transform = Transform3D(0.8660248, 0.3830344, -0.32138094, 0, 0.6427605, 0.76606715, 0.5000011, -0.66343313, 0.5566465, 0, 0, 0)
light_color = Color(1, 0.97, 0.9, 1)
shadow_enabled = true
directional_shadow_blend_splits = true
directional_shadow_max_distance = 40.0
[node name="Player" parent="." unique_id=869687860 instance=ExtResource("1_gjxf3")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)