some environnement and water stuff

This commit is contained in:
Victor Turgeon
2023-06-11 10:44:54 -04:00
parent 5614495e12
commit 19847bd56c
4 changed files with 126 additions and 2 deletions

View File

@@ -1,7 +1,35 @@
[gd_scene load_steps=3 format=3 uid="uid://cbs0x36e3ranm"]
[gd_scene load_steps=6 format=3 uid="uid://cbs0x36e3ranm"]
[ext_resource type="MeshLibrary" uid="uid://dwo1m72yajrb1" path="res://assets/tilesets/tileset.tres" id="1_l447d"]
[ext_resource type="PackedScene" uid="uid://b5gb5paiupum" path="res://player/player.tscn" id="2_ojnju"]
[ext_resource type="PackedScene" uid="uid://c2casdi4d2o3j" path="res://shaders/water_plane.tscn" id="3_ga7wg"]
[sub_resource type="Environment" id="Environment_i4emf"]
ambient_light_source = 3
ambient_light_color = Color(0.54902, 0.815686, 0.964706, 1)
ssao_radius = 11.01
sdfgi_enabled = true
sdfgi_use_occlusion = true
sdfgi_bounce_feedback = 0.56
glow_intensity = 1.69
fog_enabled = true
fog_light_color = Color(0.294118, 0.439216, 0.411765, 1)
fog_light_energy = 0.8
fog_density = 0.005
fog_height = -1.0
fog_height_density = 0.5
volumetric_fog_enabled = true
volumetric_fog_density = 0.005
volumetric_fog_albedo = Color(0.780392, 0.996078, 1, 1)
volumetric_fog_emission = Color(0.360784, 0.290196, 0.0862745, 1)
volumetric_fog_anisotropy = 0.05
volumetric_fog_detail_spread = 1.68179
adjustment_enabled = true
adjustment_brightness = 1.1
adjustment_contrast = 1.25
adjustment_saturation = 0.8
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_rja1c"]
[node name="test_level" type="Node3D"]
@@ -16,5 +44,19 @@ data = {
metadata/_editor_floor_ = Vector3(0, 0, 0)
[node name="player" parent="." instance=ExtResource("2_ojnju")]
transform = Transform3D(1, 0, 0, 0, 0.388867, 0.921294, 0, -0.921294, 0.388867, -1.19974, 40.1006, 13.3341)
transform = Transform3D(1, 0, 0, 0, 0.494109, 0.8694, 0, -0.8694, 0.494109, -3.70665, 40.1006, 20.9216)
current = true
[node name="water_plane" parent="." instance=ExtResource("3_ga7wg")]
transform = Transform3D(227.061, 0, -196.07, 0, 300, 0, 196.07, 0, 227.061, 0, 0.257405, 0)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.175911, -0.891337, 0.41782, 0.878449, 0.333691, 0.34202, -0.444278, 0.306869, 0.841694, 0, 3.35555, 0)
light_energy = 2.1
light_indirect_energy = 0.863
light_volumetric_fog_energy = 1.74
light_angular_distance = 5.2
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_i4emf")
camera_attributes = SubResource("CameraAttributesPhysical_rja1c")