liblast/Game/Assets/Effects/ImpactBlood.tscn

210 lines
6.0 KiB
Plaintext

[gd_scene load_steps=16 format=3 uid="uid://egphnvwk6cg"]
[ext_resource type="Script" path="res://Assets/Effects/Impact.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://cguy76rs8e220" path="res://Assets/Effects/Flame.png" id="2"]
[ext_resource type="Shader" path="res://Assets/Effects/ImpactBlood.gdshader" id="3_4p01j"]
[ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="3_ftpj2"]
[ext_resource type="Texture2D" uid="uid://th4fli1vgo1a" path="res://Assets/Decals/Blood/BloodSplash_albedo.png" id="5_koq4p"]
[ext_resource type="Texture2D" uid="uid://pobhi2vhmdpc" path="res://Assets/Decals/Blood/BloodSplash_normal.png" id="6_ak8en"]
[ext_resource type="Texture2D" uid="uid://bosf0mht2450i" path="res://Assets/Decals/Blood/BloodSplash_orm.png" id="7_b0035"]
[sub_resource type="Animation" id="Animation_es1gj"]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance3D:shader_params/o3007790_ANIM")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Decal:distance_fade_begin")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [10.0]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Decal:distance_fade_length")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [10.0]
}
[sub_resource type="Animation" id="Animation_fex44"]
resource_name = "Splat"
length = 15.0
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance3D:shader_params/o3007790_ANIM")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/1/type = "method"
tracks/1/path = NodePath("MeshInstance3D")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PackedFloat32Array(0.3),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Decal:distance_fade_begin")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PackedFloat32Array(5, 15),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [10.0, -10.0]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Decal:distance_fade_length")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PackedFloat32Array(5, 15),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [10.0, 0.0]
}
tracks/4/type = "method"
tracks/4/path = NodePath(".")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PackedFloat32Array(15),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
[sub_resource type="StandardMaterial3D" id="7"]
blend_mode = 3
shading_mode = 0
vertex_color_use_as_albedo = true
albedo_texture = ExtResource( "2" )
billboard_mode = 3
particles_anim_h_frames = 2
particles_anim_v_frames = 2
particles_anim_loop = false
[sub_resource type="QuadMesh" id="2"]
material = SubResource( "7" )
size = Vector2(0.2, 0.2)
[sub_resource type="Curve" id="3"]
_data = [Vector2(0, 0.981818), 0.0, -1.7826, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
[sub_resource type="Gradient" id="8"]
colors = PackedColorArray(1, 0, 0, 1, 1, 1, 1, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_d8ai5"]
shader = ExtResource( "3_4p01j" )
[sub_resource type="QuadMesh" id="QuadMesh_xdhl5"]
material = SubResource( "ShaderMaterial_d8ai5" )
size = Vector2(2, 2)
[node name="Impact" type="Node3D"]
script = ExtResource( "1" )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Splat"
anims/RESET = SubResource( "Animation_es1gj" )
anims/Splat = SubResource( "Animation_fex44" )
blend_times = []
script = null
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
emitting = false
amount = 32
lifetime = 3.0
one_shot = true
explosiveness = 1.0
local_coords = false
mesh = SubResource( "2" )
particle_flag_rotate_y = true
direction = Vector3(0, 1, 0)
spread = 180.0
initial_velocity_min = 0.5
initial_velocity_max = 5.0
scale_amount_curve = SubResource( "3" )
color_ramp = SubResource( "8" )
script = null
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
script = null
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0.00379224, -0.855044)
shader_params/o3007790_ANIM = 0.0
shader_params/o3007790_OFFSET = 0.0
mesh = SubResource( "QuadMesh_xdhl5" )
surface_material_override/0 = null
script = null
[node name="SoundPlayer" parent="." instance=ExtResource( "3_ftpj2" )]
SoundClip = "res://Assets/SFX/Weapons_BulletHitPlayer_01.wav"
AutoPlay = true
RandomizePitch = 0.3
[node name="AudioStreamPlayer3D" parent="SoundPlayer" index="0"]
unit_db = -3.0
unit_size = 2.0
[node name="Decal" type="Decal" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 2.65704)
extents = Vector3(1, 3.66033, 1)
texture_albedo = ExtResource( "5_koq4p" )
texture_normal = ExtResource( "6_ak8en" )
texture_orm = ExtResource( "7_b0035" )
normal_fade = 0.397
upper_fade = 0.00618518
lower_fade = 0.178381
distance_fade_enabled = true
distance_fade_length = 10.0
cull_mask = 1
script = null
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
[editable path="SoundPlayer"]