SupaLidlGame/UI/PostProcessing/StunEffect.tscn

59 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-03-25 23:46:24 -07:00
[gd_scene load_steps=7 format=3 uid="uid://b1wsryv4bn0cn"]
[ext_resource type="Shader" path="res://Shaders/Grayscale.gdshader" id="2_dlm7y"]
[ext_resource type="Script" path="res://UI/PostProcessing/StunEffect.cs" id="3_h8rlj"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_uawkd"]
shader = ExtResource("2_dlm7y")
shader_parameter/grayscale_intensity = 0.0
[sub_resource type="Animation" id="Animation_5d4h1"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:material:shader_parameter/grayscale_intensity")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_txpv1"]
resource_name = "tighten"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:material:shader_parameter/grayscale_intensity")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kyxik"]
_data = {
"RESET": SubResource("Animation_5d4h1"),
"tighten": SubResource("Animation_txpv1")
}
[node name="StunEffect" type="ColorRect"]
material = SubResource("ShaderMaterial_uawkd")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("3_h8rlj")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kyxik")
}