added night sky and moon

This commit is contained in:
Derek
2025-03-21 23:09:34 -05:00
parent b85014c48b
commit 7df45fd0e0
6 changed files with 56 additions and 36 deletions

View File

@@ -124,6 +124,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.789394)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.35947)
top_level = true
attributes = SubResource("CameraAttributesPractical_w2xv5")
fov = 150.0

Binary file not shown.

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://do0nm3sn75gc3"
path.bptc="res://.godot/imported/dikhololo_night_4k.exr-bbe0ff05d471a8fec432c8d7b0c3b28e.bptc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/dikhololo_night_4k.exr"
dest_files=["res://.godot/imported/dikhololo_night_4k.exr-bbe0ff05d471a8fec432c8d7b0c3b28e.bptc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://cwy8iv8nlwqrc"]
[gd_scene load_steps=9 format=3 uid="uid://cwy8iv8nlwqrc"]
[ext_resource type="Script" uid="uid://dl780dimuvcms" path="res://scripts/realtime_day_night_cycle.gd" id="1_idjmm"]
[ext_resource type="Texture2D" uid="uid://do0nm3sn75gc3" path="res://assets/dikhololo_night_4k.exr" id="2_xp6wm"]
[sub_resource type="Gradient" id="Gradient_idjmm"]
offsets = PackedFloat32Array(0.00636943, 0.159236, 0.828025, 1)
@@ -16,7 +17,10 @@ _data = [Vector2(5, 0), 0.0, 0.66, 0, 0, Vector2(12, 2), 0.0, 0.0, 0, 0, Vector2
point_count = 3
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_xp6wm"]
rayleigh_coefficient = 17.2
rayleigh_color = Color(0.705144, 0.689027, 0.62083, 1)
energy_multiplier = 5.0
night_sky = ExtResource("2_xp6wm")
[sub_resource type="Sky" id="Sky_6g0ku"]
sky_material = SubResource("PhysicalSkyMaterial_xp6wm")
@@ -42,6 +46,10 @@ sun_energy_over_time = SubResource("Curve_idjmm")
environment = SubResource("Environment_ml2st")
[node name="Sun" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.997171, 0.0751772, 0, 0.0642699, -0.852493, 0.518773, 0.0389999, -0.517306, -0.854912, 0, 0, 0)
light_energy = 1.45936
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
shadow_enabled = true
[node name="Moon" type="DirectionalLight3D" parent="Sun"]
transform = Transform3D(1, 0, 0, 0, -1, -8.74228e-08, 0, 8.74228e-08, -1, 0, 0, 0)
light_color = Color(0.5874, 0.804263, 0.89, 1)
shadow_enabled = true