ZN_FastNoiseLiteGradient

Inherits: Resource

Generates coherent and fractal noise gradients using the FastNoiseLite library.

Description:

This is an alternate implementation of FastNoiseLite, because Godot's integration does not expose methods to access gradients directly.

These algorithms are specialized to generate vectors to perturb positions, and can be faster than calculating 2 or 3 times a regular noise.

Properties:

Type Name Default
float amplitude 30.0
float fractal_gain 0.5
float fractal_lacunarity 2.0
int fractal_octaves 3
FractalType fractal_type FRACTAL_NONE (0)
NoiseType noise_type TYPE_VALUE (2)
float period 64.0
RotationType3D rotation_type_3d ROTATION_3D_NONE (0)
int seed 0

Methods:

Return Signature
Vector2 warp_2d ( Vector2 position )
Vector3 warp_3d ( Vector3 position )

Enumerations:

enum NoiseType:

  • TYPE_OPEN_SIMPLEX_2 = 0
  • TYPE_OPEN_SIMPLEX_2_REDUCED = 1
  • TYPE_VALUE = 2

enum FractalType:

  • FRACTAL_NONE = 0
  • FRACTAL_DOMAIN_WARP_PROGRESSIVE = 1
  • FRACTAL_DOMAIN_WARP_INDEPENDENT = 2

enum RotationType3D:

  • ROTATION_3D_NONE = 0
  • ROTATION_3D_IMPROVE_XY_PLANES = 1
  • ROTATION_3D_IMPROVE_XZ_PLANES = 2

Property Descriptions

float amplitude = 30.0

(This property has no documentation)

float fractal_gain = 0.5

(This property has no documentation)

float fractal_lacunarity = 2.0

(This property has no documentation)

int fractal_octaves = 3

(This property has no documentation)

FractalType fractal_type = FRACTAL_NONE (0)

(This property has no documentation)

NoiseType noise_type = TYPE_VALUE (2)

(This property has no documentation)

float period = 64.0

(This property has no documentation)

RotationType3D rotation_type_3d = ROTATION_3D_NONE (0)

(This property has no documentation)

int seed = 0

(This property has no documentation)

Method Descriptions

Vector2 warp_2d( Vector2 position )

(This method has no documentation)

Vector3 warp_3d( Vector3 position )

(This method has no documentation)

Generated on Jan 26, 2026