diff options
Diffstat (limited to 'demos/2d/texscreen')
-rw-r--r-- | demos/2d/texscreen/OpenCV_Chessboard.png | bin | 44884 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/bubble.png | bin | 18619 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/bubbles.gd | 11 | ||||
-rw-r--r-- | demos/2d/texscreen/bubbles.tscn | 32 | ||||
-rw-r--r-- | demos/2d/texscreen/burano.png | bin | 974437 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/engine.cfg | 12 | ||||
-rw-r--r-- | demos/2d/texscreen/icon.png | bin | 9245 -> 0 bytes | |||
-rw-r--r-- | demos/2d/texscreen/lens.gd | 32 | ||||
-rw-r--r-- | demos/2d/texscreen/lens.tscn | 29 |
9 files changed, 0 insertions, 116 deletions
diff --git a/demos/2d/texscreen/OpenCV_Chessboard.png b/demos/2d/texscreen/OpenCV_Chessboard.png Binary files differdeleted file mode 100644 index 31b7f8ccd8..0000000000 --- a/demos/2d/texscreen/OpenCV_Chessboard.png +++ /dev/null diff --git a/demos/2d/texscreen/bubble.png b/demos/2d/texscreen/bubble.png Binary files differdeleted file mode 100644 index 021abba601..0000000000 --- a/demos/2d/texscreen/bubble.png +++ /dev/null diff --git a/demos/2d/texscreen/bubbles.gd b/demos/2d/texscreen/bubbles.gd deleted file mode 100644 index c0c7d892e6..0000000000 --- a/demos/2d/texscreen/bubbles.gd +++ /dev/null @@ -1,11 +0,0 @@ - -extends Control - -# Member variables -const MAX_BUBBLES = 10 - - -func _ready(): - for i in range(MAX_BUBBLES): - var bubble = preload("res://lens.tscn").instance() - add_child(bubble) diff --git a/demos/2d/texscreen/bubbles.tscn b/demos/2d/texscreen/bubbles.tscn deleted file mode 100644 index 72b7874b92..0000000000 --- a/demos/2d/texscreen/bubbles.tscn +++ /dev/null @@ -1,32 +0,0 @@ -[gd_scene load_steps=3 format=1] - -[ext_resource path="res://bubbles.gd" type="Script" id=1] -[ext_resource path="res://burano.png" type="Texture" id=2] - -[node name="texscreen_demo" type="Control"] - -anchor/right = 1 -anchor/bottom = 1 -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 0.0 -margin/top = 0.0 -margin/right = 0.0 -margin/bottom = 0.0 -script/script = ExtResource( 1 ) - -[node name="burano" type="TextureFrame" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 0.0 -margin/top = 0.0 -margin/right = 800.0 -margin/bottom = 600.0 -texture = ExtResource( 2 ) - - diff --git a/demos/2d/texscreen/burano.png b/demos/2d/texscreen/burano.png Binary files differdeleted file mode 100644 index 6eec09d585..0000000000 --- a/demos/2d/texscreen/burano.png +++ /dev/null diff --git a/demos/2d/texscreen/engine.cfg b/demos/2d/texscreen/engine.cfg deleted file mode 100644 index 0a3f084270..0000000000 --- a/demos/2d/texscreen/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Glass Bubbles (Texscreen)" -main_scene="res://bubbles.tscn" -icon="res://icon.png" - -[display] - -width=800 -height=600 -stretch_mode="2d" -stretch_aspect="keep" diff --git a/demos/2d/texscreen/icon.png b/demos/2d/texscreen/icon.png Binary files differdeleted file mode 100644 index d74d025ced..0000000000 --- a/demos/2d/texscreen/icon.png +++ /dev/null diff --git a/demos/2d/texscreen/lens.gd b/demos/2d/texscreen/lens.gd deleted file mode 100644 index d1007553b0..0000000000 --- a/demos/2d/texscreen/lens.gd +++ /dev/null @@ -1,32 +0,0 @@ - -extends BackBufferCopy - -# Member variables -const MOTION_SPEED = 150 - -var vsize -var dir - - -func _process(delta): - var pos = get_pos() + dir*delta*MOTION_SPEED - - if (pos.x < 0): - dir.x = abs(dir.x) - elif (pos.x > vsize.x): - dir.x = -abs(dir.x) - - if (pos.y < 0): - dir.y = abs(dir.y) - elif (pos.y > vsize.y): - dir.y = -abs(dir.y) - - set_pos(pos) - - -func _ready(): - vsize = get_viewport_rect().size - var pos = vsize*Vector2(randf(), randf()) - set_pos(pos) - dir = Vector2(randf()*2.0 - 1, randf()*2.0 - 1).normalized() - set_process(true) diff --git a/demos/2d/texscreen/lens.tscn b/demos/2d/texscreen/lens.tscn deleted file mode 100644 index 7f449e46ae..0000000000 --- a/demos/2d/texscreen/lens.tscn +++ /dev/null @@ -1,29 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[ext_resource path="res://lens.gd" type="Script" id=1] -[ext_resource path="res://bubble.png" type="Texture" id=2] - -[sub_resource type="CanvasItemShader" id=1] - -_code = { "fragment":"vec4 normal = tex(TEXTURE,UV);\nvec2 offset = normal.xy * 2.0 - vec2(1.0);\nCOLOR.rgb=texscreen(SCREEN_UV+offset*0.03);\nCOLOR.a=normal.a;\nCOLOR.rgb*=vec3(1.0,0.8,0.7);\n", "fragment_ofs":0, "light":"", "light_ofs":0, "vertex":"", "vertex_ofs":0 } - -[sub_resource type="CanvasItemMaterial" id=2] - -shader/shader = SubResource( 1 ) -shader/shading_mode = 0 - -[node name="glass" type="BackBufferCopy"] - -transform/pos = Vector2( 482.908, 346.807 ) -transform/scale = Vector2( 1.31289, 1.34009 ) -copy_mode = 1 -rect = Rect2( -100, -100, 200, 200 ) -script/script = ExtResource( 1 ) - -[node name="lens" type="Sprite" parent="."] - -material/material = SubResource( 2 ) -transform/pos = Vector2( 1.6427, -2.90363 ) -texture = ExtResource( 2 ) - - |