Improved performance
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user