Added clouds
This commit is contained in:
parent
d5681e5dbb
commit
4c518e93c9
@ -153,6 +153,7 @@ skill_4={
|
||||
3d_render/layer_3="Trees"
|
||||
3d_render/layer_4="Structures"
|
||||
3d_render/layer_5="Water"
|
||||
3d_render/layer_6="Clouds"
|
||||
3d_render/layer_7="Loot"
|
||||
3d_render/layer_9="Enemies"
|
||||
3d_render/layer_10="Players"
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_resource type="Environment" load_steps=2 format=3 uid="uid://dixa0yso2s1u3"]
|
||||
|
||||
[ext_resource type="Sky" uid="uid://chqkkvnsudiww" path="res://world/Sky.tres" id="1_akiwh"]
|
||||
[ext_resource type="Sky" uid="uid://chqkkvnsudiww" path="res://world/sky/Sky.tres" id="1_akiwh"]
|
||||
|
||||
[resource]
|
||||
background_mode = 2
|
||||
@ -20,7 +20,8 @@ glow_bloom = 0.2
|
||||
glow_blend_mode = 1
|
||||
glow_hdr_threshold = 0.7
|
||||
volumetric_fog_density = 0.005
|
||||
volumetric_fog_emission = Color(0.45098, 0.690196, 1, 1)
|
||||
volumetric_fog_albedo = Color(0.654902, 0.811765, 0.996078, 1)
|
||||
volumetric_fog_emission = Color(0.654902, 0.811765, 0.996078, 1)
|
||||
adjustment_enabled = true
|
||||
adjustment_contrast = 1.1
|
||||
adjustment_saturation = 1.1
|
||||
|
@ -1,6 +0,0 @@
|
||||
[gd_resource type="Sky" load_steps=2 format=3 uid="uid://chqkkvnsudiww"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://chtgn5pdoof5e" path="res://world/sky/PanoramaSkyMaterial.tres" id="1_e3kjt"]
|
||||
|
||||
[resource]
|
||||
sky_material = ExtResource("1_e3kjt")
|
6
client/world/clouds/Cloud.gd
Normal file
6
client/world/clouds/Cloud.gd
Normal file
@ -0,0 +1,6 @@
|
||||
extends FogVolume
|
||||
|
||||
var speed: float = 0.1
|
||||
|
||||
func _process(delta):
|
||||
position.z += speed * delta
|
11
client/world/clouds/Cloud.tscn
Normal file
11
client/world/clouds/Cloud.tscn
Normal file
@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://citib8t72camt"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://hopugp3kkyfg" path="res://world/clouds/CloudFogMaterial.tres" id="1_h6r4i"]
|
||||
[ext_resource type="Script" path="res://world/clouds/Cloud.gd" id="2_2qw84"]
|
||||
|
||||
[node name="Cloud" type="FogVolume"]
|
||||
layers = 32
|
||||
size = Vector3(30, 3, 30)
|
||||
shape = 0
|
||||
material = ExtResource("1_h6r4i")
|
||||
script = ExtResource("2_2qw84")
|
7
client/world/clouds/CloudFogMaterial.tres
Normal file
7
client/world/clouds/CloudFogMaterial.tres
Normal file
@ -0,0 +1,7 @@
|
||||
[gd_resource type="FogMaterial" load_steps=2 format=3 uid="uid://hopugp3kkyfg"]
|
||||
|
||||
[ext_resource type="NoiseTexture3D" uid="uid://b855oq1adebh7" path="res://world/clouds/CloudNoise.tres" id="1_0yfk1"]
|
||||
|
||||
[resource]
|
||||
density = 0.85
|
||||
density_texture = ExtResource("1_0yfk1")
|
10
client/world/clouds/CloudNoise.tres
Normal file
10
client/world/clouds/CloudNoise.tres
Normal file
@ -0,0 +1,10 @@
|
||||
[gd_resource type="NoiseTexture3D" load_steps=3 format=3 uid="uid://b855oq1adebh7"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_m1jro"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_raby5"]
|
||||
|
||||
[resource]
|
||||
color_ramp = SubResource("Gradient_m1jro")
|
||||
noise = SubResource("FastNoiseLite_raby5")
|
8
client/world/sky/ClearSkyMaterial.tres
Normal file
8
client/world/sky/ClearSkyMaterial.tres
Normal file
@ -0,0 +1,8 @@
|
||||
[gd_resource type="ProceduralSkyMaterial" format=3 uid="uid://bjebmdqcr2a1e"]
|
||||
|
||||
[resource]
|
||||
sky_top_color = Color(0.192157, 0.576471, 0.976471, 1)
|
||||
sky_horizon_color = Color(0.360784, 0.654902, 0.992157, 1)
|
||||
ground_bottom_color = Color(0.360784, 0.654902, 0.992157, 1)
|
||||
ground_horizon_color = Color(0.360784, 0.654902, 0.992157, 1)
|
||||
sun_curve = 0.2
|
@ -7,7 +7,10 @@ seamless = true
|
||||
noise = SubResource("FastNoiseLite_v2kyf")
|
||||
|
||||
[resource]
|
||||
sky_horizon_color = Color(0.647059, 0.654902, 0.670588, 1)
|
||||
sky_top_color = Color(0.192157, 0.576471, 0.976471, 1)
|
||||
sky_horizon_color = Color(0.858824, 0.964706, 0.996078, 1)
|
||||
sky_cover = SubResource("NoiseTexture2D_aa80t")
|
||||
sky_cover_modulate = Color(0.584314, 0.584314, 0.584314, 1)
|
||||
ground_bottom_color = Color(0.647059, 0.654902, 0.670588, 1)
|
||||
sky_cover_modulate = Color(1, 1, 0.498039, 1)
|
||||
ground_bottom_color = Color(0.858824, 0.964706, 0.996078, 1)
|
||||
ground_horizon_color = Color(0.858824, 0.964706, 0.996078, 1)
|
||||
sun_curve = 0.2
|
6
client/world/sky/Sky.tres
Normal file
6
client/world/sky/Sky.tres
Normal file
@ -0,0 +1,6 @@
|
||||
[gd_resource type="Sky" load_steps=2 format=3 uid="uid://chqkkvnsudiww"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://bjebmdqcr2a1e" path="res://world/sky/ClearSkyMaterial.tres" id="1_3u6cj"]
|
||||
|
||||
[resource]
|
||||
sky_material = ExtResource("1_3u6cj")
|
Loading…
Reference in New Issue
Block a user