This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/Scenes/Transition.tscn
2022-06-18 13:05:48 +02:00

57 lines
1.5 KiB
Text

[gd_scene load_steps=6 format=2]
[ext_resource path="res://Scripts/TransitionScript.gd" type="Script" id=1]
[ext_resource path="res://Shaders/emptyshader.shader" type="Shader" id=2]
[sub_resource type="ShaderMaterial" id=6]
render_priority = -1
shader = ExtResource( 2 )
[sub_resource type="Animation" id=1]
resource_name = "fadeIn"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0.839216, 0.0196078, 0.196078, 0 ), Color( 0.839216, 0.0196078, 0.196078, 1 ) ]
}
[sub_resource type="Animation" id=4]
resource_name = "fadeOut"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0.839216, 0.0196078, 0.196078, 1 ), Color( 0.839216, 0.0196078, 0.196078, 0 ) ]
}
[node name="Transition" type="ColorRect"]
material = SubResource( 6 )
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -3840.0
margin_top = -2160.0
margin_right = 3840.0
margin_bottom = 2160.0
color = Color( 0.839216, 0.0196078, 0.196078, 1 )
script = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/fadeIn = SubResource( 1 )
anims/fadeOut = SubResource( 4 )