[gd_scene load_steps=7 format=2] [ext_resource path="res://graphics/fade_patterns/diamonds2.png" type="Texture" id=1] [ext_resource path="res://autoloads/fade.gd" type="Script" id=2] [ext_resource path="res://shaders/fade.gdshader" type="Shader" id=3] [sub_resource type="ShaderMaterial" id=6] shader = ExtResource( 3 ) shader_param/color = Color( 0, 0, 0, 1 ) shader_param/smooth_mode = false shader_param/reverse = false shader_param/opacity = 0.0 [sub_resource type="Animation" id=7] resource_name = "FadeIn" tracks/0/type = "value" tracks/0/path = NodePath("TextureRect:material:shader_param/opacity") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 1 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ 1.0, 0.0 ] } [sub_resource type="Animation" id=8] resource_name = "FadeOut" tracks/0/type = "value" tracks/0/path = NodePath("TextureRect:material:shader_param/opacity") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 1 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ 0.0, 1.0 ] } [node name="Fade" type="CanvasLayer" groups=["viewport_autoload"]] pause_mode = 2 layer = 125 script = ExtResource( 2 ) [node name="TextureRect" type="TextureRect" parent="."] material = SubResource( 6 ) margin_right = 256.0 margin_bottom = 192.0 texture = ExtResource( 1 ) expand = true stretch_mode = 6 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] anims/FadeIn = SubResource( 7 ) anims/FadeOut = SubResource( 8 ) [connection signal="animation_finished" from="AnimationPlayer" to="." method="_fade_finished"]