khanat-client/scenes/fx/blood_particles.tscn

59 lines
1.6 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=8 format=2]
[ext_resource path="res://assets/fx/blood_splash.png" type="Texture" id=1]
[ext_resource path="res://scenes/fx/blood_particles.gd" type="Script" id=2]
[sub_resource type="Gradient" id=1]
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )
[sub_resource type="ParticlesMaterial" id=3]
lifetime_randomness = 1.0
emission_shape = 1
emission_sphere_radius = 0.1
spread = 180.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 0.1
initial_velocity_random = 1.0
angular_velocity = 0.1
angular_velocity_random = 1.0
radial_accel = 0.1
radial_accel_random = 1.0
tangential_accel = 0.1
tangential_accel_random = 1.0
color_ramp = SubResource( 2 )
[sub_resource type="SpatialMaterial" id=4]
flags_transparent = true
flags_unshaded = true
flags_do_not_receive_shadows = true
vertex_color_use_as_albedo = true
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_color = Color( 0.509804, 0, 0, 1 )
albedo_texture = ExtResource( 1 )
[sub_resource type="QuadMesh" id=5]
material = SubResource( 4 )
size = Vector2( 0.5, 0.5 )
[node name="blood_particles" type="Particles"]
emitting = false
amount = 5
one_shot = true
explosiveness = 1.0
randomness = 1.0
visibility_aabb = AABB( -0.160859, -0.176793, -0.256905, 0.351465, 0.346999, 0.438635 )
local_coords = false
process_material = SubResource( 3 )
draw_pass_1 = SubResource( 5 )
script = ExtResource( 2 )
[node name="lifetime" type="Timer" parent="."]
one_shot = true
[connection signal="timeout" from="lifetime" to="." method="_on_lifetime_timeout"]