This repository was archived by the owner on Aug 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotepad.tscn
More file actions
82 lines (65 loc) · 2.1 KB
/
notepad.tscn
File metadata and controls
82 lines (65 loc) · 2.1 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
77
78
79
80
81
82
[gd_scene load_steps=10 format=2]
[ext_resource path="res://art/notetemp.png" type="Texture" id=1]
[ext_resource path="res://notepad.gd" type="Script" id=2]
[sub_resource type="Shader" id=4]
code = "shader_type canvas_item;
// Background Noise
uniform mat2 _rot = mat2( vec2(0.5, 0.86), vec2(-0.86, 0.5));
uniform float _speed = 1.1;
uniform float _gradation : hint_range(0, 2) = 0.5;
float wave(vec2 p) {
float v = sin(p.x+sin(p.y) + sin(p.y*.43));
return v*v;
}
float map(float time, vec2 p) {
float v = 0.0;
v += wave(p);
p.x += time * _speed;
p = p * _rot;
v += wave(p);
p.x += time * _speed * .17;
p = p * _rot;
v += wave(p);
v = abs(1.5 - v);
return v;
}
void fragment()
{
vec2 resolution = 1.0 / SCREEN_PIXEL_SIZE;
vec2 uv = (FRAGCOORD.xy * 2.0 - resolution.xy) / min(resolution.x, resolution.y);
vec2 p = normalize(vec3(uv.xy, 2.3)).xy * 10.0;
p.y += TIME * _speed * 0.3;
float v=map(TIME, p);
COLOR = vec4((v * .7 + texture(SCREEN_TEXTURE,SCREEN_UV).r) / 2.0, (v * .3 + texture(SCREEN_TEXTURE,SCREEN_UV).g) / 2.0, (v * 0.49 + texture(SCREEN_TEXTURE,SCREEN_UV).b / 2.0), _gradation);
}"
[sub_resource type="ShaderMaterial" id=5]
shader = SubResource( 4 )
shader_param/_rot = Transform2D( 0.5, -0.86, 0.86, 0.5, 0, 0 )
shader_param/_speed = 1.1
shader_param/_gradation = 0.5
[sub_resource type="Shader" id=6]
[sub_resource type="ShaderMaterial" id=7]
shader = SubResource( 6 )
[sub_resource type="DynamicFontData" id=1]
font_path = "res://art/KiwiSoda.ttf"
[sub_resource type="DynamicFont" id=2]
size = 23
font_data = SubResource( 1 )
[sub_resource type="StyleBoxFlat" id=3]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
[node name="Node2D" type="Node2D"]
material = SubResource( 5 )
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 3, 3 )
texture = ExtResource( 1 )
[node name="TextEdit" type="TextEdit" parent="."]
material = SubResource( 7 )
margin_left = -129.0
margin_top = -197.0
margin_right = 103.0
margin_bottom = 113.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 2 )
custom_styles/normal = SubResource( 3 )
wrap_enabled = true