[gd_scene load_steps=12 format=3 uid="uid://cfsot3wc41tx"]

[ext_resource type="Script" uid="uid://bntxwxn6ns5l0" path="res://Scripts/Items/goblet.gd" id="1_ihtnh"]
[ext_resource type="Script" uid="uid://ctwdmnqaxkty" path="res://Scripts/Resources/item.gd" id="2_ihtnh"]
[ext_resource type="Texture2D" uid="uid://1eu6ubigu64i" path="res://Assets/Textures/kenny/Orange/texture_01.png" id="3_ihtnh"]
[ext_resource type="Script" uid="uid://bahmrqvs4pafg" path="res://Scripts/Items/interactable.gd" id="4_ajay6"]
[ext_resource type="Shader" uid="uid://c0chn7ll6p7yk" path="res://Assets/Shaders/outline.gdshader" id="4_lowgp"]

[sub_resource type="Resource" id="Resource_lowgp"]
script = ExtResource("2_ihtnh")
value = 100
name = "Golden Goblet"
weight = 10
primary_objective = true
secondary_objective = false
metadata/_custom_type_script = "uid://ctwdmnqaxkty"

[sub_resource type="BoxMesh" id="BoxMesh_lowgp"]
size = Vector3(0.25, 1, 0.25)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ajay6"]
albedo_texture = ExtResource("3_ihtnh")
uv1_triplanar = true

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ihtnh"]
points = PackedVector3Array(-0.125, -0.5, -0.125, -0.125, -0.5, 0.125, -0.125, 0.5, -0.125, 0.125, -0.5, -0.125, 0.125, -0.5, 0.125, -0.125, 0.5, 0.125, 0.125, 0.5, -0.125, 0.125, 0.5, 0.125)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ajay6"]
render_priority = 0
shader = ExtResource("4_lowgp")
shader_parameter/normal_threshold = 1.5
shader_parameter/depth_threshold = 0.05
shader_parameter/depth_artifact_correction_coef = 2.0
shader_parameter/outline_color = Color(0.882353, 0.882353, 0.882353, 1)

[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ajay6"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath(".:rotation")
properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath(".:visible")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/3/path = NodePath(".:collision_layer")
properties/3/spawn = true
properties/3/replication_mode = 1
properties/4/path = NodePath(".:freeze")
properties/4/spawn = true
properties/4/replication_mode = 1

[node name="Goblet" type="RigidBody3D"]
collision_layer = 2
collision_mask = 3
continuous_cd = true
script = ExtResource("1_ihtnh")
item = SubResource("Resource_lowgp")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
mesh = SubResource("BoxMesh_lowgp")
surface_material_override/0 = SubResource("StandardMaterial3D_ajay6")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("ConvexPolygonShape3D_ihtnh")

[node name="Interactable" type="Node3D" parent="."]
script = ExtResource("4_ajay6")

[node name="outline" type="MeshInstance3D" parent="Interactable"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
visible = false
mesh = SubResource("BoxMesh_lowgp")
skeleton = NodePath("../..")
surface_material_override/0 = SubResource("ShaderMaterial_ajay6")

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_ajay6")
