small racing game im working on
Diffstat (limited to 'assets/weather/rain.tscn')
| -rw-r--r-- | assets/weather/rain.tscn | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/assets/weather/rain.tscn b/assets/weather/rain.tscn new file mode 100644 index 0000000..2807b24 --- /dev/null +++ b/assets/weather/rain.tscn @@ -0,0 +1,49 @@ +[gd_scene load_steps=8 format=3 uid="uid://djuioycs2febt"] + +[ext_resource type="Material" uid="uid://cfjih27cqwnw6" path="res://assets/mats/rain.tres" id="1_qjua6"] +[ext_resource type="Script" path="res://assets/weather/rain.gd" id="2_f4nfm"] +[ext_resource type="Material" uid="uid://d3lp1hy8qhwdh" path="res://assets/weather/rain_mat.tres" id="2_xvn2p"] + +[sub_resource type="FogMaterial" id="FogMaterial_srgm5"] +density = 0.05 +edge_fade = 1e-05 + +[sub_resource type="Curve" id="Curve_iply2"] +max_value = 0.1 +_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.175439, 0.0469388), 0.0860627, 0.0860627, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_r6n8u"] +material = ExtResource("2_xvn2p") +curve = SubResource("Curve_iply2") + +[sub_resource type="BoxShape3D" id="BoxShape3D_dn7ng"] +size = Vector3(40, 40, 40) + +[node name="selection" type="StaticBody3D"] +collision_layer = 4 +collision_mask = 0 +script = ExtResource("2_f4nfm") +rain_mat = ExtResource("2_xvn2p") + +[node name="fog" type="FogVolume" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, 0) +size = Vector3(42, 42, 42) +material = SubResource("FogMaterial_srgm5") + +[node name="rain" type="GPUParticles3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 40, 0) +amount = 1000 +lifetime = 2.0 +preprocess = 2.0 +randomness = 0.61 +visibility_aabb = AABB(-20, -40, -20, 40, 40, 40) +trail_enabled = true +trail_lifetime = 0.2 +process_material = ExtResource("1_qjua6") +draw_pass_1 = SubResource("RibbonTrailMesh_r6n8u") + +[node name="picker" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 19, 0) +visible = false +shape = SubResource("BoxShape3D_dn7ng") |