[gd_scene load_steps=11 format=2]

[ext_resource path="res://godette.png" type="Texture" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[ext_resource path="res://Shaders/BitwiseShaders/SIsCi.jpg" type="Texture" id=3]
[ext_resource path="res://Shaders/BitwiseShaders/BitwiseOp.gdshader" type="Shader" id=4]
[ext_resource path="res://Shaders/BitwiseShaders/BitwiseTest.tres" type="Material" id=5]
[ext_resource path="res://Shaders/BitwiseShaders/AnimationPlayer.gd" type="Script" id=6]

[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 4 )
shader_param/operation = 1
shader_param/premult = Color( 0, 0, 0, 1 )
shader_param/opref = ExtResource( 3 )

[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 4 )
shader_param/operation = 2
shader_param/premult = Color( 0, 0, 0, 1 )
shader_param/opref = ExtResource( 3 )

[sub_resource type="Animation" id=3]
resource_name = "Demo"
length = 3.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("GodetteAND:material:shader_param/premult")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 2, 3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 0, 0, 0, 1 ), Color( 0, 0.898039, 0.286275, 1 ), Color( 1, 1, 1, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("GodetteOR:material:shader_param/premult")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 1, 2, 3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 0.654902, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 0.654902, 0, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("GodetteXOR:material:shader_param/premult")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 1, 2, 3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 1 ), Color( 0, 0.392157, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 0, 0, 0, 1 ) ]
}

[sub_resource type="Animation" id=4]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("GodetteAND:material:shader_param/premult")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("GodetteOR:material:shader_param/premult")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("GodetteXOR:material:shader_param/premult")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 1 ) ]
}

[node name="BitwiseTest" type="Node2D"]

[node name="GodetteBack" type="Sprite" parent="."]
position = Vector2( 268, 302 )
scale = Vector2( 0.444516, 0.444516 )
texture = ExtResource( 1 )

[node name="Icon" type="Sprite" parent="GodetteBack"]
show_behind_parent = true
position = Vector2( 85.4863, 31.4949 )
scale = Vector2( 21.9318, 21.9318 )
texture = ExtResource( 2 )

[node name="GodetteAND" type="Sprite" parent="."]
material = ExtResource( 5 )
position = Vector2( 273, 163 )
rotation = -1.5708
scale = Vector2( 0.444516, 0.444516 )
texture = ExtResource( 1 )

[node name="GodetteOR" type="Sprite" parent="."]
material = SubResource( 1 )
position = Vector2( 308, 309 )
rotation = 1.5708
scale = Vector2( 0.444516, 0.444516 )
texture = ExtResource( 1 )

[node name="GodetteXOR" type="Sprite" parent="."]
material = SubResource( 2 )
position = Vector2( 260, 486 )
rotation = -1.5708
scale = Vector2( 0.444516, 0.444516 )
texture = ExtResource( 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Demo = SubResource( 3 )
anims/RESET = SubResource( 4 )
script = ExtResource( 6 )

[node name="Comment" type="Label" parent="."]
margin_left = 72.0
margin_top = 7.0
margin_right = 112.0
margin_bottom = 21.0
text = "if you wanna seriously use this:
consider rendering your own bitwise operation look up texture,
the one i have rn is from the internet and its a fucking jpeg lol"
__meta__ = {
"_edit_use_anchors_": false
}
