Repository navigation
Expand file tree
/
Copy pathSDFConverter.tscn
More file actions
76 lines (65 loc) · 2.11 KB
/
Copy pathSDFConverter.tscn
File metadata and controls
76 lines (65 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[gd_scene load_steps=8 format=2]
[ext_resource path="res://assets/fonts/SpaceMono-Bold.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://materials/shaders/SDFConverter.gdshader" type="Shader" id=2]
[ext_resource path="res://scripts/util/SDFConverter.gd" type="Script" id=3]
[sub_resource type="DynamicFont" id=3]
size = 1024
font_data = ExtResource( 1 )
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 2 )
shader_param/sdf_range = 16
shader_param/transparent_color = Color( 0, 0, 0, 1 )
[sub_resource type="DynamicFont" id=5]
size = 1024
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=6]
default_font = SubResource( 5 )
[node name="Control" type="ViewportContainer"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -300.0
margin_right = 512.0
margin_bottom = 300.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
source_font = SubResource( 3 )
dest_path = "res://assets/fonts/SpaceMonoBoldSDF"
render_viewport_path = NodePath("Viewport2/ViewportContainer/Viewport")
sdf_viewport_path = NodePath("Viewport2")
sdf_renderer_path = NodePath("Viewport2/ViewportContainer")
label_path = NodePath("Viewport2/ViewportContainer/Viewport/Label")
[node name="Viewport2" type="Viewport" parent="."]
size = Vector2( 27, 64 )
transparent_bg = true
handle_input_locally = false
usage = 0
render_target_update_mode = 3
[node name="ViewportContainer" type="ViewportContainer" parent="Viewport2"]
material = SubResource( 2 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 40.0
margin_bottom = 40.0
[node name="Viewport" type="Viewport" parent="Viewport2/ViewportContainer"]
size = Vector2( 67, 104 )
handle_input_locally = false
usage = 0
render_target_update_mode = 3
[node name="ColorRect" type="ColorRect" parent="Viewport2/ViewportContainer/Viewport"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 40.0
margin_bottom = 40.0
color = Color( 0, 0, 0, 1 )
[node name="Label" type="Label" parent="Viewport2/ViewportContainer/Viewport"]
margin_right = 627.0
margin_bottom = 1517.0
theme = SubResource( 6 )
text = "A"
align = 1
valign = 1