khanat-client/scenes/game/game.tscn

99 lines
3.2 KiB
Text
Raw Normal View History

2020-03-21 13:18:06 +00:00
[gd_scene load_steps=14 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/dunes/dunes.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/game/game.gd" type="Script" id=3]
[ext_resource path="res://scenes/decors/vegets/tree_001.tscn" type="PackedScene" 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]
[sub_resource type="OpenSimplexNoise" id=1]
period = 8.0
[sub_resource type="NoiseTexture" id=4]
resource_local_to_scene = true
width = 1280
height = 720
seamless = true
noise = SubResource( 1 )
[sub_resource type="ShaderMaterial" id=5]
resource_local_to_scene = true
shader = ExtResource( 5 )
shader_param/iTime = 6165.88
shader_param/iFrame = 199437
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 )
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( 4 )
[sub_resource type="ImageTexture" id=6]
resource_local_to_scene = true
size = Vector2( 1280, 720 )
[sub_resource type="ViewportTexture" id=2]
viewport_path = NodePath("sky/viewport")
[sub_resource type="PanoramaSky" id=3]
resource_local_to_scene = true
panorama = SubResource( 2 )
[sub_resource type="Environment" id=7]
resource_local_to_scene = true
background_mode = 2
background_sky = SubResource( 3 )
background_energy = 0.1
ambient_light_energy = 3.82
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( 5 )
texture = SubResource( 6 )
offset = Vector2( 640, 360 )
script = ExtResource( 6 )
editor_clouds_playing = true
day_time_hours = 3.67154
directional_light_node_path = NodePath("../../../directional_light")
sun_position = Vector3( -1.15706e-06, 100, 8.66537e-06 )
[node name="world_environment" type="WorldEnvironment" parent="."]
environment = SubResource( 7 )
2020-03-21 09:10:26 +00:00
[node name="level" type="Spatial" parent="."]
[node name="dunes" parent="level" instance=ExtResource( 2 )]
transform = Transform( 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0 )
[node name="tree_001" parent="level" instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.2768, 8, 13.9512 )
[node name="creatures" type="Spatial" parent="."]
[node name="player" parent="creatures" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 14.7098, 0 )
[node name="directional_light" type="DirectionalLight" parent="."]
2020-03-21 13:18:06 +00:00
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 )
light_energy = 1.0
2020-03-21 09:10:26 +00:00
shadow_enabled = true