[gd_scene load_steps=9 format=2] [ext_resource path="res://scenes/WorldChunk.cs" type="Script" id=1] [ext_resource path="res://materials/IslandColorRampShader.tres" type="Material" id=2] [ext_resource path="res://assets/TestHeightmap.tres" type="Texture" id=3] [ext_resource path="res://assets/4x4checkerColor.png" type="Texture" id=4] [sub_resource type="CubeMesh" id=27] size = Vector3( 1, 1, 1 ) [sub_resource type="SpatialMaterial" id=28] 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 ) [sub_resource type="OpenSimplexNoise" id=29] octaves = 1 period = 9.0 persistence = 0.0 [sub_resource type="NoiseTexture" id=30] width = 8 height = 8 noise = SubResource( 29 ) [node name="WorldChunk" type="Spatial"] script = ExtResource( 1 ) [node name="Entities" type="Spatial" parent="."] [node name="PlaneRectMesh" type="MeshInstance" parent="."] transform = Transform( 2, 0, 0, 0, 0.125, 0, 0, 0, 2, 0, -0.1, 0 ) visible = false mesh = SubResource( 27 ) material/0 = SubResource( 28 ) [node name="TileTypeOffscreenViewport" type="Viewport" parent="."] size = Vector2( 8, 8 ) 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 [node name="NoiseTexture" type="TextureRect" parent="TileTypeOffscreenViewport"] visible = false margin_right = 40.0 margin_bottom = 40.0 texture = SubResource( 30 ) [node name="IslandShader" type="TextureRect" parent="TileTypeOffscreenViewport"] material = ExtResource( 2 ) margin_right = 100.0 margin_bottom = 100.0 [node name="HeightmapTexture" type="TextureRect" parent="TileTypeOffscreenViewport/IslandShader"] use_parent_material = true margin_right = 100.0 margin_bottom = 100.0 texture = ExtResource( 3 )