From ad68c25447337715848709e38eeaf26115a6eeaa Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 25 Aug 2024 11:21:32 +0100 Subject: [PATCH] Add world environment with maximum ambient light --- project/scenes/main.tscn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/project/scenes/main.tscn b/project/scenes/main.tscn index 6d95fef..7df2331 100644 --- a/project/scenes/main.tscn +++ b/project/scenes/main.tscn @@ -1,9 +1,14 @@ -[gd_scene load_steps=4 format=3 uid="uid://boxi211q3kx6c"] +[gd_scene load_steps=5 format=3 uid="uid://boxi211q3kx6c"] [ext_resource type="Script" path="res://project/code/TMV/Mission.cs" id="1_3gnqe"] [ext_resource type="Script" path="res://project/code/camera.gd" id="2_w5otl"] [ext_resource type="PackedScene" uid="uid://cekg1xb5f0ux1" path="res://project/scenes/ui/mission_selector.tscn" id="3_hwfcj"] +[sub_resource type="Environment" id="Environment_cckyk"] +ambient_light_source = 2 +ambient_light_color = Color(1, 1, 1, 1) +ssao_enabled = true + [node name="Main" type="Node3D"] [node name="Mission" type="Node3D" parent="."] @@ -17,3 +22,6 @@ script = ExtResource("2_w5otl") [node name="MissionSelector" parent="UI" instance=ExtResource("3_hwfcj")] unique_name_in_owner = true + +[node name="WorldEnvironment" type="WorldEnvironment" parent="."] +environment = SubResource("Environment_cckyk")