Add procedural ocean sky

This commit is contained in:
Alexander Sellite 2026-07-31 13:41:59 -04:00
parent 99775ddbfb
commit 05543cb2ab
3 changed files with 40 additions and 20 deletions

View file

@ -3,24 +3,7 @@
[ext_resource type="Script" path="res://world/test_world.gd" id="1_world"]
[ext_resource type="PackedScene" path="res://world/regions/starter_island_region.tscn" id="2_island"]
[ext_resource type="Script" path="res://world/below_world_failsafe.gd" id="3_water_trigger"]
[sub_resource type="Environment" id="Environment"]
background_mode = 1
background_color = Color(0.58, 0.72, 0.82, 1)
background_energy_multiplier = 0.85
ambient_light_source = 3
ambient_light_color = Color(0.78, 0.84, 0.92, 1)
ambient_light_energy = 0.95
fog_enabled = true
fog_light_color = Color(0.62, 0.73, 0.8, 1)
fog_light_energy = 0.75
fog_density = 0.0025
fog_aerial_perspective = 0.2
fog_sky_affect = 0.15
adjustment_enabled = true
adjustment_brightness = 0.9
adjustment_contrast = 0.89
adjustment_saturation = 0.91
[ext_resource type="Environment" path="res://world/environment/netfishing_environment.tres" id="4_environment"]
[sub_resource type="BoxShape3D" id="NorthSouthBoundsShape"]
size = Vector3(120, 14, 2)
@ -37,11 +20,11 @@ script = ExtResource("1_world")
[node name="Environment" type="Node3D" parent="."]
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"]
environment = SubResource("Environment")
environment = ExtResource("4_environment")
[node name="Sun" type="DirectionalLight3D" parent="Environment"]
rotation_degrees = Vector3(-54, -32, 0)
light_color = Color(1, 0.94, 0.88, 1)
light_color = Color(1, 0.945098, 0.721569, 1)
light_energy = 0.68
shadow_enabled = true
shadow_opacity = 0.58