天气系统
This commit is contained in:
28
Scene/Particle/Rain.tscn
Normal file
28
Scene/Particle/Rain.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://3cr6q4he2y0x"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jiccn"]
|
||||
lifetime_randomness = 0.6
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 3
|
||||
emission_box_extents = Vector3(1000, 1, 1)
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 0.0
|
||||
initial_velocity_min = 100.0
|
||||
initial_velocity_max = 400.0
|
||||
gravity = Vector3(0, 98, 0)
|
||||
scale_min = 4.0
|
||||
scale_max = 6.0
|
||||
color = Color(0, 0.380392, 1, 1)
|
||||
turbulence_influence_min = 0.02
|
||||
turbulence_influence_max = 0.08
|
||||
|
||||
[node name="Rain" type="GPUParticles2D"]
|
||||
visible = false
|
||||
z_index = 10
|
||||
amount = 450
|
||||
lifetime = 10.0
|
||||
preprocess = 20.0
|
||||
speed_scale = 1.5
|
||||
visibility_rect = Rect2(-900, 0, 2000, 2000)
|
||||
trail_lifetime = 0.01
|
||||
process_material = SubResource("ParticleProcessMaterial_jiccn")
|
||||
25
Scene/Particle/WillowLeafRain.tscn
Normal file
25
Scene/Particle/WillowLeafRain.tscn
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cvg38nsrm77jy"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bnv6wb0k443fv" path="res://assets/天气系统图片/柳叶2.webp" id="1_tq8cs"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_tdq2s"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 3
|
||||
emission_box_extents = Vector3(1000, 1, 1)
|
||||
gravity = Vector3(-30, 80, 0)
|
||||
scale_min = 0.4
|
||||
scale_max = 0.5
|
||||
turbulence_enabled = true
|
||||
turbulence_noise_speed = Vector3(10, 0, 0)
|
||||
turbulence_influence_min = 0.02
|
||||
turbulence_influence_max = 0.07
|
||||
|
||||
[node name="WillowLeafRain1" type="GPUParticles2D"]
|
||||
self_modulate = Color(0.7, 0.7, 0.7, 1)
|
||||
z_index = 10
|
||||
amount = 50
|
||||
texture = ExtResource("1_tq8cs")
|
||||
lifetime = 20.0
|
||||
preprocess = 10.0
|
||||
visibility_rect = Rect2(-900, 0, 2300, 2000)
|
||||
process_material = SubResource("ParticleProcessMaterial_tdq2s")
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b5j2tonaoiku5"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dx7rtwu53mgxh"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dk4yl4ghmxaa2" path="res://assets/天气系统图片/雪花.webp" id="1_nqr5d"]
|
||||
[ext_resource type="Texture2D" uid="uid://dk4yl4ghmxaa2" path="res://assets/天气系统图片/雪花.webp" id="1_yj638"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_4ka7t"]
|
||||
_data = [Vector2(0, 0.951807), 0.0, 0.0, 0, 0, Vector2(0.0153846, 1), 0.0, 0.0, 0, 0, Vector2(0.0461538, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
_data = [Vector2(0, 0.951807), 0.0, 0.0, 0, 0, Vector2(1e-05, 0.963855), 0.0, 0.0, 0, 0, Vector2(0.0153846, 1), 0.0, 0.0, 0, 0, Vector2(0.0461538, 1), 0.0, 0.0, 0, 0, Vector2(0.561538, 0.819277), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 6
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_nf3jg"]
|
||||
curve = SubResource("Curve_4ka7t")
|
||||
@@ -16,7 +16,7 @@ colors = PackedColorArray(1, 1, 1, 0.352941, 1, 1, 1, 1)
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_5dq3w"]
|
||||
gradient = SubResource("Gradient_adtqp")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jiccn"]
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4ka7t"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 3
|
||||
emission_box_extents = Vector3(1000, 1, 1)
|
||||
@@ -30,8 +30,10 @@ turbulence_influence_min = 0.02
|
||||
turbulence_influence_max = 0.08
|
||||
|
||||
[node name="Snow" type="GPUParticles2D"]
|
||||
amount = 200
|
||||
texture = ExtResource("1_nqr5d")
|
||||
lifetime = 10.0
|
||||
visible = false
|
||||
amount = 300
|
||||
texture = ExtResource("1_yj638")
|
||||
lifetime = 18.0
|
||||
preprocess = 30.0
|
||||
process_material = SubResource("ParticleProcessMaterial_jiccn")
|
||||
visibility_rect = Rect2(-900, 0, 2300, 2000)
|
||||
process_material = SubResource("ParticleProcessMaterial_4ka7t")
|
||||
|
||||
Reference in New Issue
Block a user