Add sky HDRI

This commit is contained in:
Aidan Mullen 2024-05-06 18:51:34 -04:00
parent 568652f0a7
commit ece54f1019
4 changed files with 37 additions and 2 deletions

22
.gitignore vendored
View file

@ -35,11 +35,17 @@
!/engine/title.tscn !/engine/title.tscn
# /engine/bin # /engine/bin
!/engine/bin !/engine/bin/
/engine/bin/* /engine/bin/*
!/engine/bin/librtr.gdextension !/engine/bin/librtr.gdextension
# /engine/img
!/engine/img/
/engine/img/*
!/engine/img/sky.hdr
# /src # /src
!/src/ !/src/
/src/* /src/*
@ -50,6 +56,20 @@
!/src/main.gdextension !/src/main.gdextension
!/src/main.h !/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 4+ specific ignores
.godot/ .godot/

View file

@ -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="Node3D" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_yt03y")

BIN
engine/img/sky.hdr Normal file

Binary file not shown.

BIN
res/texture/Sky.blend Normal file

Binary file not shown.