2023-11-01 16:02:39 +01:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2023-10-05 18:17:48 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://scenes/WorldChunk.cs" type="Script" id=1]
|
2023-12-29 09:26:43 +01:00
|
|
|
[ext_resource path="res://materials/WorldTileTypeMaterial.tres" type="Material" id=2]
|
2023-10-23 21:22:53 +02:00
|
|
|
[ext_resource path="res://assets/TestHeightmap.tres" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://assets/4x4checkerColor.png" type="Texture" id=4]
|
2023-11-01 16:02:39 +01:00
|
|
|
[ext_resource path="res://addons/gdhexgrid/icon.png" type="Texture" id=6]
|
2023-10-05 18:17:48 +02:00
|
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=27]
|
2023-10-23 21:22:53 +02:00
|
|
|
size = Vector3( 1, 1, 1 )
|
2023-10-05 18:17:48 +02:00
|
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=28]
|
2023-10-23 21:22:53 +02:00
|
|
|
flags_transparent = true
|
|
|
|
albedo_color = Color( 1, 1, 1, 0.501961 )
|
|
|
|
albedo_texture = ExtResource( 4 )
|
|
|
|
uv1_scale = Vector3( -3, -2, 0 )
|
|
|
|
uv1_offset = Vector3( 2, 2, 0 )
|
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[sub_resource type="CanvasItemMaterial" id=29]
|
|
|
|
blend_mode = 3
|
2023-10-23 21:22:53 +02:00
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[sub_resource type="ImageTexture" id=30]
|
2023-10-05 18:17:48 +02:00
|
|
|
|
|
|
|
[node name="WorldChunk" type="Spatial"]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2023-11-15 20:57:25 +01:00
|
|
|
[node name="Tiles" type="Spatial" parent="."]
|
|
|
|
|
2023-10-05 18:17:48 +02:00
|
|
|
[node name="Entities" type="Spatial" parent="."]
|
|
|
|
|
|
|
|
[node name="PlaneRectMesh" type="MeshInstance" parent="."]
|
2023-10-23 21:22:53 +02:00
|
|
|
transform = Transform( 2, 0, 0, 0, 0.125, 0, 0, 0, 2, 0, -0.1, 0 )
|
2023-10-27 22:56:49 +02:00
|
|
|
visible = false
|
2023-10-05 18:17:48 +02:00
|
|
|
mesh = SubResource( 27 )
|
|
|
|
material/0 = SubResource( 28 )
|
2023-10-23 21:22:53 +02:00
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[node name="HeightmapOffscreenViewport" type="Viewport" parent="."]
|
|
|
|
size = Vector2( 50, 50 )
|
2023-10-23 21:22:53 +02:00
|
|
|
handle_input_locally = false
|
|
|
|
hdr = false
|
|
|
|
disable_3d = true
|
|
|
|
usage = 0
|
|
|
|
render_target_v_flip = true
|
|
|
|
render_target_update_mode = 3
|
|
|
|
shadow_atlas_quad_0 = 0
|
|
|
|
shadow_atlas_quad_1 = 0
|
|
|
|
shadow_atlas_quad_2 = 0
|
|
|
|
shadow_atlas_quad_3 = 0
|
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[node name="NoiseSprite" type="Sprite" parent="HeightmapOffscreenViewport"]
|
|
|
|
texture = ExtResource( 6 )
|
|
|
|
centered = false
|
|
|
|
|
|
|
|
[node name="NoiseMask" type="Sprite" parent="HeightmapOffscreenViewport"]
|
|
|
|
material = SubResource( 29 )
|
2023-10-23 21:22:53 +02:00
|
|
|
texture = SubResource( 30 )
|
2023-11-01 16:02:39 +01:00
|
|
|
centered = false
|
2023-10-23 21:22:53 +02:00
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[node name="TileTypeOffscreenViewport" type="Viewport" parent="."]
|
|
|
|
size = Vector2( 100, 100 )
|
|
|
|
handle_input_locally = false
|
|
|
|
hdr = false
|
|
|
|
disable_3d = true
|
|
|
|
usage = 0
|
|
|
|
render_target_v_flip = true
|
|
|
|
render_target_update_mode = 3
|
|
|
|
shadow_atlas_quad_0 = 0
|
|
|
|
shadow_atlas_quad_1 = 0
|
|
|
|
shadow_atlas_quad_2 = 0
|
|
|
|
shadow_atlas_quad_3 = 0
|
2023-10-23 21:22:53 +02:00
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[node name="HeightmapSprite" type="Sprite" parent="TileTypeOffscreenViewport"]
|
|
|
|
material = ExtResource( 2 )
|
2023-10-23 21:22:53 +02:00
|
|
|
texture = ExtResource( 3 )
|
2023-11-01 16:02:39 +01:00
|
|
|
centered = false
|