1
- [gd_scene load_steps =15 format =3 uid ="uid://ci11oo63dcfuh" ]
1
+ [gd_scene load_steps =16 format =3 uid ="uid://ci11oo63dcfuh" ]
2
2
3
3
[ext_resource type ="Script" path ="res://addons/ShaderSecretsHelper/DemoScreen.gd" id ="1" ]
4
4
[ext_resource type ="PackedScene" uid ="uid://dnei3uy5bhpha" path ="res://Demos/Glow2D/BlurGlow/Scene.tscn" id ="2" ]
5
5
[ext_resource type ="Shader" path ="res://Shaders/gaussian_blur.gdshader" id ="3" ]
6
6
[ext_resource type ="Shader" path ="res://Shaders/compose.gdshader" id ="4" ]
7
7
[ext_resource type ="Shader" path ="res://Shaders/glow_prepass.gdshader" id ="5" ]
8
- [ext_resource type ="PackedScene" path ="res://Shared/Background2D/Demo2DBackground.tscn" id ="7" ]
8
+ [ext_resource type ="Texture2D" uid ="uid://7giw201cbixu" path ="res://Shared/sprites/robi_shaded.png" id ="5_bxej1" ]
9
+ [ext_resource type ="PackedScene" uid ="uid://7mqdkojagyav" path ="res://Shared/Background2D/Demo2DBackground.tscn" id ="7" ]
9
10
[ext_resource type ="Script" path ="res://Utils/DebugViewer.gd" id ="8" ]
10
- [ext_resource type ="PackedScene" path ="res://Shared/DemoInterface.tscn" id ="9" ]
11
+ [ext_resource type ="PackedScene" uid = "uid://diofpwcvq5elu" path ="res://Shared/DemoInterface.tscn" id ="9" ]
11
12
12
13
[sub_resource type ="ShaderMaterial" id ="1" ]
13
14
shader = ExtResource ("3" )
15
+ shader_parameter/blur_scale = Vector2 (1 , 1 )
14
16
15
17
[sub_resource type ="ShaderMaterial" id ="2" ]
16
18
shader = ExtResource ("3" )
19
+ shader_parameter/blur_scale = Vector2 (1 , 1 )
17
20
18
21
[sub_resource type ="ShaderMaterial" id ="3" ]
19
22
shader = ExtResource ("5" )
@@ -39,95 +42,100 @@ script = ExtResource("1")
39
42
40
43
[node name ="MaskView" type ="SubViewportContainer" parent ="." ]
41
44
self_modulate = Color (1 , 1 , 1 , 0 )
42
- anchor_right = 1.0
43
- anchor_bottom = 1.0
45
+ anchors_preset = 8
46
+ anchor_left = 0.5
47
+ anchor_top = 0.5
48
+ anchor_right = 0.5
49
+ anchor_bottom = 0.5
50
+ offset_left = -960.0
51
+ offset_top = -540.0
52
+ offset_right = 960.0
53
+ offset_bottom = 540.0
54
+ grow_horizontal = 2
55
+ grow_vertical = 2
44
56
mouse_filter = 2
45
57
stretch = true
46
- __meta__ = {
47
- "_edit_use_anchors_" : false
48
- }
49
58
50
59
[node name ="SubViewport" type ="SubViewport" parent ="MaskView" ]
51
- size = Vector2 (1920 , 1080 )
52
60
transparent_bg = true
53
61
handle_input_locally = false
54
- usage = 0
55
- render_target_update_mode = 3
62
+ size = Vector2i ( 1920 , 1080 )
63
+ render_target_update_mode = 4
56
64
57
65
[node name ="Blur2" type ="SubViewportContainer" parent ="MaskView/SubViewport" ]
58
66
material = SubResource ("1" )
67
+ anchors_preset = 15
59
68
anchor_right = 1.0
60
69
anchor_bottom = 1.0
61
70
mouse_filter = 2
62
71
stretch = true
63
- __meta__ = {
64
- "_edit_use_anchors_" : false
65
- }
66
72
67
73
[node name ="SubViewport" type ="SubViewport" parent ="MaskView/SubViewport/Blur2" ]
68
- size = Vector2 (1920 , 1080 )
69
74
transparent_bg = true
70
75
handle_input_locally = false
71
- usage = 0
72
- render_target_update_mode = 3
76
+ size = Vector2i ( 1920 , 1080 )
77
+ render_target_update_mode = 4
73
78
74
79
[node name ="Blur1" type ="SubViewportContainer" parent ="MaskView/SubViewport/Blur2/SubViewport" ]
75
80
material = SubResource ("2" )
81
+ anchors_preset = 15
76
82
anchor_right = 1.0
77
83
anchor_bottom = 1.0
78
84
mouse_filter = 2
79
85
stretch = true
80
- __meta__ = {
81
- "_edit_use_anchors_" : false
82
- }
83
86
84
87
[node name ="SubViewport" type ="SubViewport" parent ="MaskView/SubViewport/Blur2/SubViewport/Blur1" ]
85
- size = Vector2 (1920 , 1080 )
86
88
transparent_bg = true
87
89
handle_input_locally = false
88
- usage = 0
89
- render_target_update_mode = 3
90
+ size = Vector2i ( 1920 , 1080 )
91
+ render_target_update_mode = 4
90
92
91
93
[node name ="Sprite2D" type ="Sprite2D" parent ="MaskView/SubViewport/Blur2/SubViewport/Blur1/SubViewport" ]
92
94
material = SubResource ("3" )
93
95
position = Vector2 (960 , 540 )
94
- texture = null
96
+ scale = Vector2 (0.75 , 0.75 )
97
+ texture = ExtResource ("5_bxej1" )
95
98
96
99
[node name ="MainView" type ="SubViewportContainer" parent ="." ]
97
100
material = SubResource ("6" )
98
- anchor_right = 1.0
99
- anchor_bottom = 1.0
101
+ anchors_preset = 8
102
+ anchor_left = 0.5
103
+ anchor_top = 0.5
104
+ anchor_right = 0.5
105
+ anchor_bottom = 0.5
106
+ offset_left = -960.0
107
+ offset_top = -540.0
108
+ offset_right = 960.0
109
+ offset_bottom = 540.0
110
+ grow_horizontal = 2
111
+ grow_vertical = 2
100
112
mouse_filter = 2
101
113
stretch = true
102
- __meta__ = {
103
- "_edit_use_anchors_" : false
104
- }
105
114
106
115
[node name ="SubViewport" type ="SubViewport" parent ="MainView" ]
107
- size = Vector2 (1920 , 1080 )
108
116
transparent_bg = true
109
117
handle_input_locally = false
110
- usage = 0
111
- render_target_update_mode = 3
118
+ size = Vector2i ( 1920 , 1080 )
119
+ render_target_update_mode = 4
112
120
113
121
[node name ="Scene" parent ="MainView/SubViewport" instance =ExtResource ("2" )]
114
122
115
123
[node name ="Sprite2D" parent ="MainView/SubViewport/Scene" index ="0" ]
116
124
position = Vector2 (960 , 540 )
117
- scale = Vector2 (1 , 1 )
118
125
119
126
[node name ="RemoteTransform2D" type ="RemoteTransform2D" parent ="MainView/SubViewport/Scene/Sprite2D" index ="0" ]
120
127
remote_path = NodePath ("../../../../../MaskView/SubViewport/Blur2/SubViewport/Blur1/SubViewport/Sprite2D" )
121
128
122
129
[node name ="DebugViewer" type ="Control" parent ="." ]
130
+ visible = false
131
+ layout_mode = 3
132
+ anchors_preset = 0
123
133
offset_top = 120.0
124
134
offset_right = 40.0
125
135
offset_bottom = 160.0
126
136
script = ExtResource ("8" )
127
- __meta__ = {
128
- "_edit_use_anchors_" : false
129
- }
130
137
131
138
[node name ="DemoInterface" parent ="." instance =ExtResource ("9" )]
139
+ anchors_preset = 10
132
140
133
141
[editable path ="MainView/SubViewport/Scene" ]
0 commit comments