diff --git a/.gitignore b/.gitignore index 1af8040..7594d75 100644 --- a/.gitignore +++ b/.gitignore @@ -35,11 +35,17 @@ !/engine/title.tscn # /engine/bin -!/engine/bin +!/engine/bin/ /engine/bin/* !/engine/bin/librtr.gdextension +# /engine/img +!/engine/img/ +/engine/img/* + +!/engine/img/sky.hdr + # /src !/src/ /src/* @@ -50,6 +56,20 @@ !/src/main.gdextension !/src/main.h +# /res +!/res/ +/res/* + +# /res/mesh +!/res/mesh/ +/res/mesh/* + +# res/texture +!/res/texture/ +/res/texture/* + +!/res/texture/Sky.blend + # Godot 4+ specific ignores .godot/ diff --git a/engine/debug.tscn b/engine/debug.tscn index 12362ef..1d61cd2 100644 --- a/engine/debug.tscn +++ b/engine/debug.tscn @@ -1,3 +1,18 @@ -[gd_scene format=3 uid="uid://cg5vtf37cafsd"] +[gd_scene load_steps=5 format=3 uid="uid://cg5vtf37cafsd"] + +[ext_resource type="Texture2D" uid="uid://tpwobjqbudqn" path="res://img/sky.hdr" id="1_cqrla"] + +[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_owhq0"] +panorama = ExtResource("1_cqrla") + +[sub_resource type="Sky" id="Sky_70g61"] +sky_material = SubResource("PanoramaSkyMaterial_owhq0") + +[sub_resource type="Environment" id="Environment_yt03y"] +background_mode = 2 +sky = SubResource("Sky_70g61") [node name="Node3D" type="Node3D"] + +[node name="WorldEnvironment" type="WorldEnvironment" parent="."] +environment = SubResource("Environment_yt03y") diff --git a/engine/img/sky.hdr b/engine/img/sky.hdr new file mode 100644 index 0000000..62aad4f Binary files /dev/null and b/engine/img/sky.hdr differ diff --git a/res/texture/Sky.blend b/res/texture/Sky.blend new file mode 100644 index 0000000..7cd49db Binary files /dev/null and b/res/texture/Sky.blend differ