Branch master was renamed to main.

khanat-client/scenes/game/game.tscn

183 lines
388 KiB
Text
Raw Normal View History

[gd_scene load_steps=23 format=2]
2020-03-21 09:10:26 +00:00
[ext_resource path="res://scenes/player/player.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/decors/terrains/demo/demo.tscn" type="PackedScene" id=2]
2020-03-21 09:10:26 +00:00
[ext_resource path="res://scenes/game/game.gd" type="Script" id=3]
[ext_resource path="res://assets/interfaces/fx/trauma_fx.shader" type="Shader" id=4]
2020-03-21 13:18:06 +00:00
[ext_resource path="res://assets/sky/sky.shader" type="Shader" id=5]
[ext_resource path="res://scenes/game/sky.gd" type="Script" id=6]
[ext_resource path="res://assets/mist/mist.shader" type="Shader" id=7]
[ext_resource path="res://assets/interfaces/debug_window/debug_window.tscn" type="PackedScene" id=8]
[ext_resource path="res://assets/decors/terrains/demo/water/water_fx.shader" type="Shader" id=10]
[ext_resource path="res://scenes/interfaces/game_menu/game_ui.tscn" type="PackedScene" id=11]
2020-03-21 13:18:06 +00:00
[sub_resource type="OpenSimplexNoise" id=1]
period = 8.0
[sub_resource type="NoiseTexture" id=2]
2020-03-21 13:18:06 +00:00
resource_local_to_scene = true
width = 1280
height = 720
seamless = true
noise = SubResource( 1 )
[sub_resource type="ShaderMaterial" id=3]
2020-03-21 13:18:06 +00:00
resource_local_to_scene = true
shader = ExtResource( 5 )
shader_param/iTime = 698.899
shader_param/iFrame = 41228
2020-03-21 13:18:06 +00:00
shader_param/COVERAGE = 0.5
shader_param/THICKNESS = 25.0
shader_param/ABSORPTION = 1.031
shader_param/STEPS = 50
shader_param/earth_radius_km = 6371.0
shader_param/atmo_radius_km = 6471.0
shader_param/cam_height_m = 1.8
shader_param/sun_pos = Vector3( -1.15706e-06, 100, 8.66537e-06 )
2020-03-21 13:18:06 +00:00
shader_param/sun_intensity = 42.0
shader_param/rayleigh_coeff = Vector3( 5.5, 13, 22.4 )
shader_param/mie_coeff = 21.0
shader_param/rayleigh_scale = 800.0
shader_param/mie_scale = 120.0
shader_param/mie_scatter_dir = 0.758
shader_param/rotate_night_sky = null
shader_param/iChannel0 = SubResource( 2 )
2020-03-21 13:18:06 +00:00
[sub_resource type="ImageTexture" id=4]
2020-03-21 13:18:06 +00:00
resource_local_to_scene = true
size = Vector2( 1280, 720 )
[sub_resource type="ViewportTexture" id=5]
2020-03-21 13:18:06 +00:00
viewport_path = NodePath("sky/viewport")
[sub_resource type="PanoramaSky" id=6]
2020-03-21 13:18:06 +00:00
resource_local_to_scene = true
panorama = SubResource( 5 )
2020-03-21 13:18:06 +00:00
[sub_resource type="Environment" id=7]
resource_local_to_scene = true
background_mode = 2
background_sky = SubResource( 6 )
2020-03-21 13:18:06 +00:00
background_energy = 0.1
fog_color = Color( 0.247059, 0.00784314, 0.592157, 1 )
fog_sun_color = Color( 0.898039, 0.529412, 1, 1 )
fog_depth_begin = 5.0
fog_transmit_enabled = true
tonemap_mode = 3
ss_reflections_enabled = true
ssao_enabled = true
dof_blur_far_distance = 75.36
dof_blur_far_transition = 19.64
glow_enabled = true
glow_bloom = 0.27
adjustment_enabled = true
adjustment_saturation = 3.0
[sub_resource type="GIProbeData" id=12]
bounds = AABB( -49.1472, -45.3234, -104.684, 98.2944, 90.6468, 209.367 )
cell_size = 1.63568
to_cell_xform = Transform( 0.611366, 0, 0, 0, 0.611366, 0, 0, 0, 0.611366, 30.0469, 27.7092, 64 )
dynamic_data = PoolIntArray( 0, 8, 64, 64, 128, 6299, 4699, 1065353216, 1065221112, 1027703558, 0, 1065353216, 1065221112, 1027703558, 0, 1065353216, 761, -1, -1, -1, 1, -1, -1, -1, 0, 0, 8355711, 146, 8, 2, -1, -1, 806, 824, -1, -1, 0, 0, 8355711, 66220, -1, -1, 3, 1266, -1, -1, 99, 1109, 0, 0, 8355711, 133933, 535, 529, 558, 525, 17, 4, 88, 210, 0, 0, 8355711, 205951, -1, -1, 5, -1, -1, -1, 214, -1, 0, 0, 8355711, 265471, -1, -1, 472, 470, -1, -1, 30, 6, 0, 0, 8355711, 345087, -1, -1, 7, 1382, -1, -1, 242, 1357, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 4780429, 524287, -1, -1, 2031, 9, -1, -1, 1870, 32, 0, 0, 8355711, 133009, -1, -1, 2200, 550, -1, 74, 2036, 10, 0, 0, 8355711, 202751, 2127, 11, -1, -1, 433, 48, -1, -1, 0, 0, 8355711, 280191, 485, 489, 548, 6026, 12, 15, 6031, 6036, 0, 0, 8355711, 364543, -1, 13, 469, 14, -1, 56, 426, 57, 0, 0, 8355711, 442367, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12839560, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12709000, 524287, 16, -1, -1, -1, 78, -1, -1, -1, 0, 0, 8355711, 409599, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12839563, 524287, -1, -1, 18, 24, -1, -1, 92, 154, 0, 0, 8355711, 273407, -1, -1, 494, 482, -1, -1, 19, 22, 0, 0, 8355711, 351231, 466, 21, 20, -1, 362, 118, 98, -1, 0, 0, 8355711, 442367, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12251023, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 11204242, 524287, 465, 23, -1, -1, 339, 142, -1, -1, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 8977810, 524287, -1, -1, 479, 476, -1, -1, 25, 27, 0, 0, 8355711, 349183, 26, 464, -1, -1, 160, 306, -1, -1, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 8125841, 524287, 28, 29, -1, -1, 177, 199, -1, -1, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 6683534, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 6224269, 524287, 462, -1, 31, 463, 273, -1, 221, 222, 0, 0, 8355711, 442367, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 5633680, 524287, -1, -1, 1875, 33, -1, -1, 2460, 922, 0, 0, 8355711, 205343, 438, 42, 447, 39, 5167, 5172, 451, 34, 0, 0, 8355711, 280575, 35, 79, -1, -1, 408, 379, 1096, -1, 0, 0, 8355711, 350207, 37, 61, 38, 423, -1, 406, 36, 60, 0, 0, 8355711, 450559, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9238099, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9498695, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9368139, 524287, -1, -1, -1, -1, 40, 63, -1, -1, 0, 0, 8355711, 333823, 420, 421, -1, -1, 41, 62, -1, -1, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9629251, 524287, 414, 85, 45, 67, -1, -1, 43, 65, 0, 0, 8355711, 359423, -1, -1, 44, 418, -1, -1, 6116, 422, 0, 0, 8355711, 425983, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9891397, 524287, 46, 47, 442, 6112, 446, 419, 416, 417, 0, 0, 8355711, 458751, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 10873929, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 11200323, 524287, 54, 72, 431, 6050, 49, 69, 51, 6059, 0, 0, 8355711, 370687, -1, 413, 430, 53, -1, -1, 437, 50, 0, 0, 8355711, 434175, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 11790414, 524287, 429, -1, 6055, 6056, 436, 52, 6057, 6058, 0, 0, 8355711, 450559, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 11594060, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12184153, 524287, -1, 58, 427, 59, -1, 411, 428, 55, 0, 0, 8355711, 442367, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12511843, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12905084, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12774267, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12839535, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 12708719, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9368912, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9498694, 524287, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9694272, 524287, -1, -1, -1, -1, 64, 374, -1, -1, 0, 0, 8355711, 409599, -1, -1, -1, -1, -1, -1, -1, -1, 16777215, 0, 9824572, 524287, 403, 84, 66, 373, -1, -1, 404, 83, 0, 0,
dynamic_range = 4
energy = 0.2
bias = 1.5
normal_bias = 0.0
propagation = 0.2
[sub_resource type="QuadMesh" id=8]
size = Vector2( 2, 2 )
[sub_resource type="ShaderMaterial" id=9]
shader = ExtResource( 7 )
shader_param/mist_level = 0.0
shader_param/mist_color = Color( 1, 0, 1, 1 )
shader_param/mist_height = 0.0
shader_param/mist_distance = 25.0
2020-03-21 09:10:26 +00:00
[sub_resource type="ShaderMaterial" id=10]
2020-04-01 19:02:49 +00:00
shader = ExtResource( 4 )
shader_param/mist_level = 0.0
shader_param/blur_amount = null
[sub_resource type="ShaderMaterial" id=11]
shader = ExtResource( 10 )
shader_param/mist_level = 0.0
shader_param/mist_color = Color( 0.0156863, 0.411765, 0.545098, 1 )
shader_param/mist_height = 0.0
shader_param/mist_distance = 5.0
2020-03-21 09:10:26 +00:00
[node name="game" type="Spatial"]
script = ExtResource( 3 )
2020-03-21 13:18:06 +00:00
[node name="sky" type="Spatial" parent="."]
[node name="viewport" type="Viewport" parent="sky"]
size = Vector2( 1280, 720 )
render_target_update_mode = 3
[node name="sky" type="Sprite" parent="sky/viewport"]
material = SubResource( 3 )
texture = SubResource( 4 )
2020-03-21 13:18:06 +00:00
offset = Vector2( 640, 360 )
script = ExtResource( 6 )
editor_clouds_playing = true
directional_light_node_path = NodePath("../../sun")
sun_position = Vector3( -1.15706e-06, 100, 8.66537e-06 )
[node name="sun" type="DirectionalLight" parent="sky"]
transform = Transform( 0.991203, 0.132352, -1.15706e-08, 0, 8.74228e-08, 1, 0.132352, -0.991203, 8.66537e-08, -1.15706e-06, 100, 8.66537e-06 )
shadow_enabled = true
shadow_contact = 1.0
2020-03-21 13:18:06 +00:00
[node name="world_environment" type="WorldEnvironment" parent="."]
environment = SubResource( 7 )
[node name="gi_probe" type="GIProbe" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6.73137, 0, -27.5066 )
extents = Vector3( 49.1472, 45.3234, 104.684 )
energy = 0.2
propagation = 0.2
data = SubResource( 12 )
2020-03-21 09:10:26 +00:00
[node name="level" type="Spatial" parent="."]
[node name="demo" parent="level" instance=ExtResource( 2 )]
transform = Transform( 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0 )
2020-03-21 09:10:26 +00:00
[node name="creatures" type="Spatial" parent="."]
[node name="player" parent="creatures" instance=ExtResource( 1 )]
2020-03-28 10:13:08 +00:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.59641, 12.4341 )
2020-03-21 09:10:26 +00:00
[node name="mist_fx" type="MeshInstance" parent="."]
cast_shadow = 0
extra_cull_margin = 16384.0
mesh = SubResource( 8 )
material/0 = SubResource( 9 )
2020-04-01 19:02:49 +00:00
[node name="trauma_fx" type="MeshInstance" parent="."]
cast_shadow = 0
extra_cull_margin = 16384.0
mesh = SubResource( 8 )
material/0 = SubResource( 10 )
2020-04-01 19:02:49 +00:00
[node name="water_fx" type="MeshInstance" parent="."]
cast_shadow = 0
extra_cull_margin = 16384.0
mesh = SubResource( 8 )
material/0 = SubResource( 11 )
[node name="game_ui" parent="." instance=ExtResource( 11 )]
[node name="debug_window" parent="." instance=ExtResource( 8 )]
2020-04-01 19:02:49 +00:00
margin_left = 908.654
margin_top = 51.8173
margin_right = -115.346
margin_bottom = -412.183
[connection signal="douleur_minus_pressed" from="debug_window" to="." method="_on_debug_window_douleur_minus_pressed"]
[connection signal="douleur_plus_pressed" from="debug_window" to="." method="_on_debug_window_douleur_plus_pressed"]
[connection signal="mist_level_changed" from="debug_window" to="." method="_on_debug_window_mist_level_changed"]
[connection signal="oubli_minus_pressed" from="debug_window" to="." method="_on_debug_window_oubli_minus_pressed"]
[connection signal="oubli_plus_pressed" from="debug_window" to="." method="_on_debug_window_oubli_plus_pressed"]
[connection signal="time_of_day_changed" from="debug_window" to="." method="_on_debug_window_time_of_day_changed"]