small racing game im working on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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")