Successfully tested planar worldgen, starting spherical worldgen

This commit is contained in:
2024-02-07 17:37:19 -05:00
parent b1485028f9
commit 9d34381b11
3 changed files with 43 additions and 12 deletions

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://qnald0ho64ew"]
[gd_scene load_steps=7 format=3 uid="uid://qnald0ho64ew"]
[ext_resource type="Script" path="res://ProceduralGeneration/TerrainGeneration.gd" id="1_w5er5"]
[ext_resource type="Script" path="res://PlayerCamera.gd" id="2_r4r2e"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_vts4b"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
@ -15,17 +16,22 @@ sky = SubResource("Sky_c4t1l")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="FastNoiseLite" id="FastNoiseLite_38n1c"]
frequency = 0.0305
[node name="Main" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_qynbc")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
transform = Transform3D(-0.866024, -0.433016, 0.250001, 0, 0.499998, 0.866026, -0.500003, 0.749999, -0.43301, 0, 0, -30.0417)
shadow_enabled = true
[node name="TerrainGeneration" type="Node" parent="."]
script = ExtResource("1_w5er5")
noise = SubResource("FastNoiseLite_38n1c")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.90736, 0.420355, 0, -0.420355, 0.90736, 0, 3.01209, 7.85595)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 43.4701)
script = ExtResource("2_r4r2e")