88 lines
2.5 KiB
Plaintext
88 lines
2.5 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://2afbrf8asy2a"]
|
|
|
|
[ext_resource type="Shader" path="res://Shaders/Vignette.gdshader" id="1_nrekm"]
|
|
[ext_resource type="Texture2D" uid="uid://dxtpp41y85tv5" path="res://Assets/Sprites/Misc/white.png" id="2_r11v7"]
|
|
[ext_resource type="Script" path="res://UI/PostProcessing/Vignette.cs" id="3_judmt"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fmdjb"]
|
|
shader = ExtResource("1_nrekm")
|
|
shader_parameter/vignette_intensity = 0.2
|
|
shader_parameter/vignette_opacity = 0.3
|
|
shader_parameter/vignette_rgb = Color(0, 0, 0, 1)
|
|
|
|
[sub_resource type="Animation" id="Animation_ph4f2"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:material:shader_parameter/vignette_intensity")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.2]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:material:shader_parameter/vignette_opacity")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.3]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_sqaf2"]
|
|
resource_name = "tighten"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:material:shader_parameter/vignette_intensity")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [0.8, 0.2, 0.2]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:material:shader_parameter/vignette_opacity")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.2, 0.5),
|
|
"transitions": PackedFloat32Array(1, 0.25),
|
|
"update": 0,
|
|
"values": [1.0, 0.3]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s4mrn"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_ph4f2"),
|
|
"tighten": SubResource("Animation_sqaf2")
|
|
}
|
|
|
|
[node name="Vignette" type="TextureRect"]
|
|
material = SubResource("ShaderMaterial_fmdjb")
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("2_r11v7")
|
|
script = ExtResource("3_judmt")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_s4mrn")
|
|
}
|