tetris-mobile/Shapes/Block.tscn

31 lines
721 B
Plaintext
Raw Normal View History

2021-11-18 00:13:25 +01:00
[gd_scene load_steps=5 format=2]
2021-11-17 16:30:13 +01:00
[ext_resource path="res://Shapes/Block.gd" type="Script" id=1]
[ext_resource path="res://Resources/brick.png" type="Texture" id=2]
2021-11-18 00:13:25 +01:00
[sub_resource type="Shader" id=1]
code = "shader_type canvas_item;
uniform vec4 color;
void fragment() {
vec4 original_color = texture(TEXTURE, UV);
COLOR = original_color * color;
}"
[sub_resource type="ShaderMaterial" id=2]
resource_local_to_scene = true
shader = SubResource( 1 )
shader_param/color = Color( 1, 1, 1, 1 )
2021-11-17 16:30:13 +01:00
[node name="Block" type="Node2D"]
script = ExtResource( 1 )
2021-11-18 00:13:25 +01:00
color = Color( 1, 1, 1, 1 )
2021-11-17 16:30:13 +01:00
[node name="Sprite" type="Sprite" parent="."]
2021-11-18 00:13:25 +01:00
material = SubResource( 2 )
2021-11-17 16:30:13 +01:00
scale = Vector2( 0.125, 0.125 )
texture = ExtResource( 2 )