Added automatic procedural level of detail to planets
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b4ssaqxtmkfpq"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://b4ssaqxtmkfpq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://clkrjexk1mje0" path="res://PlanetGeneration.tscn" id="1_65in3"]
|
||||
[ext_resource type="Texture2D" uid="uid://osf4dpcksyxa" path="res://cc71d02a-1e5a-4aa3-a8f2-44f262a17d38_scaled.jpg" id="1_vooe1"]
|
||||
[ext_resource type="Script" path="res://Camera3D.gd" id="2_4ip6j"]
|
||||
[ext_resource type="Script" path="res://PlanetData.gd" id="2_gy4ke"]
|
||||
[ext_resource type="Script" path="res://Scripts/Player/Camera3D.gd" id="2_4ip6j"]
|
||||
[ext_resource type="Script" path="res://Scripts/PlanetGeneration/PlanetData.gd" id="2_gy4ke"]
|
||||
[ext_resource type="Texture2D" uid="uid://0evqagsrs13i" path="res://Earth-LikeGradient.tres" id="3_orhq2"]
|
||||
|
||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_vl6wy"]
|
||||
panorama = ExtResource("1_vooe1")
|
||||
@ -21,18 +22,17 @@ ambient_light_energy = 2.59
|
||||
tonemap_mode = 2
|
||||
glow_enabled = true
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_huf6x"]
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ubgvy"]
|
||||
noise_type = 0
|
||||
frequency = 1.0
|
||||
fractal_octaves = 10
|
||||
|
||||
[sub_resource type="Resource" id="Resource_aso5l"]
|
||||
[sub_resource type="Resource" id="Resource_12q14"]
|
||||
script = ExtResource("2_gy4ke")
|
||||
radius = 1.0
|
||||
resolution = 100
|
||||
noise_map = SubResource("FastNoiseLite_huf6x")
|
||||
amplitude = 1.0
|
||||
min_height = 0.9
|
||||
radius = 50.0
|
||||
noise_map = SubResource("FastNoiseLite_ubgvy")
|
||||
amplitude = 0.1
|
||||
planet_color = ExtResource("3_orhq2")
|
||||
flatness = 6.0
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
@ -44,9 +44,11 @@ shadow_enabled = true
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_qj44i")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -13.8584)
|
||||
script = ExtResource("2_4ip6j")
|
||||
|
||||
[node name="Planet" parent="." instance=ExtResource("1_65in3")]
|
||||
planet_data = SubResource("Resource_aso5l")
|
||||
planet_data = SubResource("Resource_12q14")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.90061, -0.173246, -0.398607, 0, 0.917122, -0.398607, 0.434628, 0.358989, 0.825969, -35.8229, -10.2513, 382.498)
|
||||
script = ExtResource("2_4ip6j")
|
||||
velocity = Vector3(-0.469469, -0.469469, -1.12083)
|
||||
acceleration = Vector3(0.0039095, 0.0039095, -0.00833256)
|
||||
|
Reference in New Issue
Block a user