From 103ce9c02e35bde75c7e0871c8c5f46ef5bfefb9 Mon Sep 17 00:00:00 2001 From: tpart Date: Sat, 27 Jul 2024 14:17:37 +0200 Subject: Move directional light to environment scene --- client/map/environment/environment.tscn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/map/environment') diff --git a/client/map/environment/environment.tscn b/client/map/environment/environment.tscn index 73e2be55..6cdb7afd 100644 --- a/client/map/environment/environment.tscn +++ b/client/map/environment/environment.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=11 format=3 uid="uid://nroo08m5og0"] +[gd_scene load_steps=12 format=3 uid="uid://nroo08m5og0"] [ext_resource type="Script" path="res://map/environment/environment.gd" id="1_qy481"] [ext_resource type="PackedScene" uid="uid://cb4ic3ssk4r8r" path="res://map/environment/world_environment.tscn" id="2_68o16"] +[ext_resource type="Script" path="res://map/auto_setup/light_setup.gd" id="3_53gk2"] [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fyrr8"] emission_shape_offset = Vector3(0, 5, 0) @@ -74,3 +75,8 @@ process_material = SubResource("ParticleProcessMaterial_pyn6b") draw_pass_1 = SubResource("SphereMesh_4trvf") [node name="WorldEnvironment" parent="." instance=ExtResource("2_68o16")] + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.413104, 0.834517, -0.364591, 0, 0.400349, 0.916363, 0.910684, 0.378553, -0.165386, 0, 0, 0) +shadow_enabled = true +script = ExtResource("3_53gk2") -- cgit v1.2.3-70-g09d2