feat: add sky map
This commit is contained in:
parent
ef08992673
commit
1008e9d151
2 changed files with 24 additions and 2 deletions
14
Assets/Skybox/sky.tres
Normal file
14
Assets/Skybox/sky.tres
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[gd_resource type="Sky" load_steps=3 format=3 uid="uid://b85r8mg2hwnfp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://drkxt6okkevle" path="res://Assets/Skybox/strange_night.jpg" id="1_ll0pl"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_nl7f8"]
|
||||
sky_top_color = Color(0.560784, 0.658824, 0.886275, 1)
|
||||
sky_horizon_color = Color(0.686275, 0.737255, 0.870588, 1)
|
||||
sky_cover = ExtResource("1_ll0pl")
|
||||
ground_bottom_color = Color(0.188235, 0.529412, 0.490196, 1)
|
||||
ground_horizon_color = Color(0.686275, 0.737255, 0.870588, 1)
|
||||
|
||||
[resource]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_nl7f8")
|
||||
radiance_size = 6
|
||||
|
|
@ -1,14 +1,20 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://bph5gpic1arod"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://bph5gpic1arod"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://qqid42jkpkmv" path="res://Levels/Scripts/WorldManager.gd" id="1_tk0a6"]
|
||||
[ext_resource type="Script" uid="uid://caf3yamufmhd4" path="res://Towers/TowerManager.gd" id="2_7pixp"]
|
||||
[ext_resource type="Script" uid="uid://wdyg06i1eb6b" path="res://Levels/Scripts/Camera.gd" id="2_c1rgm"]
|
||||
[ext_resource type="Sky" uid="uid://b85r8mg2hwnfp" path="res://Assets/Skybox/sky.tres" id="2_u6dkh"]
|
||||
[ext_resource type="PackedScene" uid="uid://p6a6rb7sgeqd" path="res://UI/gui.tscn" id="6_ebgat"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdcq7jxg08sih" path="res://Assets/Audio/SFX/Voiceover/final_round.ogg" id="6_ul70d"]
|
||||
[ext_resource type="AudioStream" uid="uid://c3x3krwcm4bbu" path="res://Assets/Audio/SFX/Voiceover/prepare_yourself.ogg" id="7_6yqi7"]
|
||||
[ext_resource type="AudioStream" uid="uid://dda05xiq04lt3" path="res://Assets/Audio/SFX/Voiceover/fight.ogg" id="8_jh6jd"]
|
||||
[ext_resource type="AudioStream" uid="uid://cxyju8u1m4t2p" path="res://Assets/Audio/SFX/Voiceover/winner.ogg" id="9_u6dkh"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_u6dkh"]
|
||||
background_mode = 2
|
||||
sky = ExtResource("2_u6dkh")
|
||||
reflected_light_source = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_c1rgm"]
|
||||
_limits = [-70.0, -20.0, 2.0, 10.0]
|
||||
_data = [Vector2(2, -20), 0.0, -12.5, 0, 1, Vector2(6, -70), 0.0, 0.0, 0, 0, Vector2(10, -70), 0.0, 0.0, 1, 0]
|
||||
|
|
@ -71,10 +77,12 @@ adjustment_saturation = 1.2
|
|||
[node name="World" type="Node3D"]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_tk0a6")
|
||||
sky = ExtResource("2_u6dkh")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
process_mode = 3
|
||||
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866026, 0, -0.866026, 0.5, 0, 10, 0)
|
||||
environment = SubResource("Environment_u6dkh")
|
||||
script = ExtResource("2_c1rgm")
|
||||
curve = SubResource("Curve_c1rgm")
|
||||
|
||||
|
|
@ -102,7 +110,7 @@ libraries = {
|
|||
environment = SubResource("Environment_036b0")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.0532597, 0.998581, 0, -0.998581, 0.0532597, 0, 4, 6)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.0532597, 0.998581, 0, -0.998581, 0.0532597, 0, 50, 0)
|
||||
light_energy = 0.0
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue