[gd_scene load_steps=14 format=2]

[ext_resource path="res://game/models/objects/area_lights/glmf2.png" type="Texture" id=1]
[ext_resource path="res://game/models/objects/area_lights/floor.shader" type="Shader" id=2]
[ext_resource path="res://game/models/objects/area_lights/pbr_a/d880Mat_normal.jpeg" type="Texture" id=3]
[ext_resource path="res://game/models/objects/area_lights/l1.gd" type="Script" id=4]
[ext_resource path="res://game/models/objects/area_lights/pbr_a/d880Mat_baseColor.jpeg" type="Texture" id=5]
[ext_resource path="res://game/models/objects/area_lights/area_lights.gd" type="Script" id=7]

[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 2 )
shader_param/spherePos1 = Vector3( 1, 0.5, -1 )
shader_param/sphereRad1 = 0.02
shader_param/spherecol1 = Color( 1, 0.658824, 0.172549, 1 )
shader_param/spherePos2 = Vector3( 1, 0.5, 1 )
shader_param/sphereRad2 = 0.02
shader_param/spherecol2 = Color( 0.45098, 0.458824, 1, 1 )
shader_param/tubeStart1 = Vector3( 0.25, 0.5, 1 )
shader_param/tubeEnd1 = Vector3( -0.25, 0.5, 1 )
shader_param/tubeRad1 = 0.05
shader_param/tubecol1 = Color( 0.945098, 0.0392157, 0.0392157, 1 )
shader_param/tubeStart2 = Vector3( 0.25, 0.5, -1 )
shader_param/tubeEnd2 = Vector3( -0.25, 0.5, -1 )
shader_param/tubeRad2 = 0.05
shader_param/tubecol2 = Color( 0.87451, 1, 0.14902, 1 )
shader_param/tubeStart3 = Vector3( 0.25, 0.5, -2 )
shader_param/tubeEnd3 = Vector3( -0.25, 0.5, -2 )
shader_param/tubeRad3 = 0.05
shader_param/tubecol3 = Color( 0.87451, 1, 0.14902, 1 )
shader_param/texture_albedo = ExtResource( 5 )
shader_param/tex_border = ExtResource( 1 )
shader_param/texture_normal = ExtResource( 3 )

[sub_resource type="PlaneMesh" id=2]
size = Vector2( 20, 8 )

[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0, 0, 0, 1 )
emission_enabled = true
emission = Color( 0.639216, 1, 0.113725, 1 )
emission_energy = 3.0
emission_operator = 0
emission_on_uv2 = false

[sub_resource type="CapsuleMesh" id=4]
radius = 0.025
mid_height = 0.35
radial_segments = 16
rings = 4

[sub_resource type="SpatialMaterial" id=5]
emission_enabled = true
emission = Color( 1, 0.113725, 0.113725, 1 )
emission_energy = 3.0
emission_operator = 0
emission_on_uv2 = false

[sub_resource type="CapsuleMesh" id=6]
radius = 0.025
radial_segments = 16
rings = 4

[sub_resource type="SphereShape" id=7]
radius = 0.5

[node name="area_lights" type="Spatial"]
script = ExtResource( 7 )

[node name="floor" type="MeshInstance" parent="."]
material_override = SubResource( 1 )
mesh = SubResource( 2 )
material/0 = null

[node name="l2" type="MeshInstance" parent="."]
transform = Transform( -1.62921e-07, 1, -1.62921e-07, 0, -1.62921e-07, -1, -1, -1.62921e-07, 2.65431e-14, -1.41553, 0.237639, -2.99843 )
material_override = SubResource( 3 )
mesh = SubResource( 4 )
material/0 = null

[node name="l3" type="MeshInstance" parent="."]
transform = Transform( -1.62921e-07, 1, -1.62921e-07, 0, -1.62921e-07, -1, -1, -1.62921e-07, 2.65431e-14, 1.4936, 0.237639, -2.99843 )
material_override = SubResource( 3 )
mesh = SubResource( 4 )
material/0 = null

[node name="l1" type="MeshInstance" parent="."]
transform = Transform( 0.770991, 1.03755e-07, 0.636846, 0.524047, -0.568217, -0.634432, 0.361867, 0.822879, -0.438091, -2.8, 0.62, 0 )
material_override = SubResource( 5 )
mesh = SubResource( 6 )
material/0 = null
script = ExtResource( 4 )

[node name="Area" type="Area" parent="l1"]

[node name="CollisionShape" type="CollisionShape" parent="l1/Area"]
shape = SubResource( 7 )

[node name="OmniLight" type="OmniLight" parent="l1"]
light_color = Color( 0.890196, 0.207843, 0.207843, 1 )
omni_range = 1.5

[node name="p1" type="Position3D" parent="."]
transform = Transform( 0.770991, 1.03755e-07, 0.636846, 0.524047, -0.568217, -0.634432, 0.361867, 0.822879, -0.438091, -2.8, 0.729, 0 )

[node name="p2" type="Position3D" parent="."]
transform = Transform( -0.0910804, 0.810823, -0.578161, 0.401245, 0.561242, 0.723885, 0.911431, -0.166053, -0.376457, 0.0161393, 0.729, 1.21022 )

[node name="p3" type="Position3D" parent="."]
transform = Transform( -0.641067, 0.109101, 0.759691, -0.387673, 0.808252, -0.443214, -0.662377, -0.578642, -0.475848, 2.76814, 0.729, 0 )

[node name="p4" type="Position3D" parent="."]
transform = Transform( 0.144153, -0.751036, -0.644333, -0.618509, -0.576655, 0.533774, -0.772442, 0.321581, -0.547649, 0.0552015, 0.729, -1.81133 )
[connection signal="body_entered" from="l1/Area" to="l1" method="_on_Area_body_entered"]
