Improved performance

This commit is contained in:
2024-02-17 19:43:47 +01:00
parent cb066f409a
commit 2bc4200f5b
12 changed files with 228 additions and 116 deletions

View File

@ -9,6 +9,9 @@ extends Node3D
@export var position_randomness := 1.0
func _ready():
if !visible:
return
for x in range(-size_x, size_x, step):
for z in range(-size_z, size_z, step):
if noise.get_noise_2d(x, z) < 1 - density * 2: