[gd_scene format=3 uid="uid://b7hhdysqqmx4y"]

[ext_resource type="Texture2D" uid="uid://c7e4jw4xcti0q" path="res://assets/sprites/castle_spritesheet.png" id="1_g7g4h"]
[ext_resource type="Shader" uid="uid://dakre5usldk6r" path="res://shaders/masked_palette_swap.gdshader" id="1_nd71p"]
[ext_resource type="Texture2D" uid="uid://b8td6sv5re6r8" path="res://assets/sprites/grey_castle_spritesheet_mask.bmp" id="2_7ddre"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_qjeyg"]
shader = ExtResource("1_nd71p")
shader_parameter/flag_mask = ExtResource("2_7ddre")
shader_parameter/team_color = Color(0.84830123, 0.29993045, 0.292207, 1)
shader_parameter/chroma_threshold = 0.10000000475

[sub_resource type="AtlasTexture" id="AtlasTexture_j8ivh"]
atlas = ExtResource("1_g7g4h")
region = Rect2(0, 100, 100, 100)

[node name="TestScene" type="Node2D" unique_id=1687841395]

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1997336331]
material = SubResource("ShaderMaterial_qjeyg")
texture = SubResource("AtlasTexture_j8ivh")
