Add daynight scene to museum beome gen + add camera pivot to daynight

This commit is contained in:
2026-04-20 10:03:44 +02:00
parent b77a6263aa
commit 667e277806
9 changed files with 244 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
extends Node3D
func _input(event):
if event is InputEventKey and event.pressed:
if event.keycode == KEY_ESCAPE:
get_tree().quit()

View File

@@ -0,0 +1 @@
uid://bw42tcfoee7xl

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
extends Node3D
func _input(event):
if event is InputEventKey and event.pressed:
if event.keycode == KEY_ESCAPE:
get_tree().quit()

View File

@@ -0,0 +1 @@
uid://bs232puek1gwc

View File

@@ -1,6 +1,7 @@
[gd_scene format=4 uid="uid://bjkhawylawqof"]
[ext_resource type="PackedScene" uid="uid://cmuvmmp7xam4o" path="res://core/daynight/environment_management.tscn" id="1_daynt"]
[ext_resource type="Script" uid="uid://bs232puek1gwc" path="res://docs/museums/daynight/museum_daynight.gd" id="1_ouqsa"]
[ext_resource type="Shader" uid="uid://bneoex8xpmcm8" path="res://core/daynight/sky.gdshader" id="3_jiovi"]
[ext_resource type="Texture2D" uid="uid://dest0qa7vaid0" path="res://core/daynight/stars_albedo.png" id="4_abyor"]
[ext_resource type="AudioStream" uid="uid://dvabvoqyya0g5" path="res://core/daynight/sounds/thunder_3.mp3" id="4_d5ghv"]
@@ -107,6 +108,7 @@ albedo_color = Color(0.135, 0.45, 0.18224995, 1)
size = Vector3(200, 0.08, 200)
[node name="Museum" type="Node3D" unique_id=1411616506]
script = ExtResource("1_ouqsa")
[node name="DayNight" parent="." unique_id=1578787116 node_paths=PackedStringArray("camera") instance=ExtResource("1_daynt")]
camera = NodePath("../Camera3D")