Vest/packages/voxel_mesher/VoxelScene.tscn
2020-10-06 22:11:14 -04:00

86 lines
2.6 KiB
Plaintext

[gd_scene load_steps=11 format=2]
[ext_resource path="res://packages/voxel_mesher/VoxelMesher.gdns" type="Script" id=1]
[ext_resource path="res://packages/voxel_mesher/Camera.gd" type="Script" id=2]
[ext_resource path="res://packages/voxel_mesher/VoxelChunk.gd" type="Script" id=3]
[ext_resource path="res://packages/voxel_mesher/VoxelScene.gd" type="Script" id=4]
[sub_resource type="CapsuleMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0.792157, 0.286275, 0.286275, 1 )
metallic = 0.74
metallic_specular = 0.56
roughness = 0.17
clearcoat_enabled = true
clearcoat = 1.0
clearcoat_gloss = 0.66
[sub_resource type="ProceduralSky" id=3]
[sub_resource type="Environment" id=4]
background_mode = 2
background_sky = SubResource( 3 )
ambient_light_color = Color( 0.784314, 0.666667, 0.666667, 1 )
fog_enabled = true
tonemap_mode = 2
auto_exposure_enabled = true
ss_reflections_enabled = true
ssao_enabled = true
ssao_intensity = 5.0
glow_enabled = true
glow_bicubic_upscale = true
[sub_resource type="PhysicsMaterial" id=5]
[sub_resource type="BoxShape" id=6]
[node name="VoxelScene" type="Spatial"]
script = ExtResource( 4 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 16, 0 )
script = ExtResource( 2 )
max_speed = Vector3( 10, 10, 10 )
forward_action = "move_forward"
backward_action = "move_back"
left_action = "move_left"
right_action = "move_right"
up_action = "move_up"
down_action = "move_down"
[node name="OmniLight" type="OmniLight" parent="Camera"]
visible = false
light_color = Color( 0.882353, 0.94902, 0.937255, 1 )
light_energy = 5.0
light_indirect_energy = 5.0
omni_range = 16.0
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.04274, 0.0241685, -13.8819 )
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 4 )
[node name="VoxelMesher" type="Node" parent="."]
script = ExtResource( 1 )
[node name="StaticBody" type="StaticBody" parent="."]
physics_material_override = SubResource( 5 )
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
shape = SubResource( 6 )
[node name="Chunk_1_1" type="MeshInstance" parent="."]
script = ExtResource( 3 )
[node name="Chunk_1_2" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16, 0, -16 )
script = ExtResource( 3 )
[node name="Chunk_1_3" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16, 0, 0 )
script = ExtResource( 3 )