feat(integration): Main scene wires world+dolphin+ambience with signal routing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Floppyrj45
2026-04-19 17:12:44 +02:00
parent 46bcbb27ba
commit af94645d4c
3 changed files with 66 additions and 9 deletions

View File

@@ -1,14 +1,29 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=6 format=3 uid="uid://dauphincraft_main"]
[sub_resource type="SphereMesh" id="SphereMesh_1"]
[ext_resource type="Script" path="res://scripts/Main.gd" id="1_mainscript"]
[ext_resource type="Script" path="res://scripts/ambience/UnderwaterEnvironment.gd" id="2_uwenv"]
[ext_resource type="PackedScene" path="res://scenes/World.tscn" id="3_world"]
[ext_resource type="PackedScene" path="res://scenes/Dolphin.tscn" id="4_dolphin"]
[ext_resource type="Script" path="res://scripts/ambience/PlanktonParticles.gd" id="5_plankton"]
[node name="Main" type="Node3D"]
script = ExtResource("1_mainscript")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5)
[node name="UnderwaterEnvironment" type="WorldEnvironment" parent="."]
script = ExtResource("2_uwenv")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707, 0.707, 0, -0.707, 0.707, 0, 3, 0)
[node name="SunLight" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.342, 0.940, 0, -0.940, 0.342, 0, 60, 0)
light_color = Color(0.6, 0.85, 1.0, 1)
light_energy = 1.2
shadow_enabled = true
[node name="Sphere" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_1")
[node name="World" parent="." instance=ExtResource("3_world")]
[node name="Dolphin" parent="." instance=ExtResource("4_dolphin")]
position = Vector3(0, 55, 0)
[node name="PlanktonFollower" type="Node3D" parent="."]
[node name="PlanktonParticles" type="GPUParticles3D" parent="PlanktonFollower"]
script = ExtResource("5_plankton")