Fixed Terrain3D segfault on close

This commit is contained in:
Rob Kelly 2024-11-17 13:08:06 -07:00
parent 81e3f6ce93
commit 5fd2433937
4 changed files with 11 additions and 5 deletions

View File

@ -51,17 +51,16 @@ _shader_parameters = {
"noise_texture": SubResource("NoiseTexture2D_sb318"),
"vertex_normals_distance": 128.0,
"world_noise_height": 74.0,
"world_noise_lod_distance": 16384.0,
"world_noise_lod_distance": 7500.0,
"world_noise_max_octaves": 8,
"world_noise_min_octaves": 2,
"world_noise_offset": Vector3(0, -8, 0),
"world_noise_region_blend": 0.33,
"world_noise_region_blend": 0.55,
"world_noise_scale": 5.0
}
world_background = 2
texture_filtering = 1
auto_shader = true
show_region_grid = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_l1sla"]
transparency = 4
@ -257,7 +256,8 @@ point_count = 5
data_directory = "res://levels/debug_level/terrain_3d_data"
material = SubResource("Terrain3DMaterial_woy2k")
assets = SubResource("Terrain3DAssets_eq5uw")
show_grid = true
mesh_size = 64
top_level = true
metadata/_edit_lock_ = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]

BIN
levels/debug_level/terrain_3d_data/terrain3d-01-01.res (Stored with Git LFS) Normal file

Binary file not shown.

BIN
levels/debug_level/terrain_3d_data/terrain3d_00-01.res (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -4,7 +4,7 @@ class_name World extends Node
## A world contains player(s) and the active level, manages player states,
## and transitions between active levels.
@export var initial_level: PackedScene = preload("res://levels/debug_level/debug_level.tscn")
@export var initial_level: PackedScene = load("res://levels/debug_level/debug_level.tscn")
@onready var level: Node3D = %Level
@onready var ui: WorldUI = %UI