FastNoise2¶
Inherits: Resource
Wrapper for the FastNoise2 library.
Properties:¶
Type | Name | Default |
---|---|---|
int |
cellular_distance_function | 0 |
float |
cellular_jitter | 1.0 |
int |
cellular_return_type | 0 |
String |
encoded_node_tree | "" |
float |
fractal_gain | 0.5 |
float |
fractal_lacunarity | 2.0 |
int |
fractal_octaves | 3 |
float |
fractal_ping_pong_strength | 2.0 |
int |
fractal_type | 0 |
int |
noise_type | 0 |
float |
period | 64.0 |
bool |
remap_enabled | false |
float |
remap_input_max | 1.0 |
float |
remap_input_min | -1.0 |
float |
remap_output_max | 1.0 |
float |
remap_output_min | -1.0 |
int |
seed | 1337 |
bool |
terrace_enabled | false |
float |
terrace_multiplier | 1.0 |
float |
terrace_smoothness | 0.0 |
Methods:¶
Return | Signature |
---|---|
void | generate_image ( Image image, bool tileable ) const |
float | get_noise_2d_single ( Vector2 pos ) const |
float | get_noise_3d_single ( Vector3 pos ) const |
String | get_simd_level_name ( int level ) |
void | update_generator ( ) |
Enumerations:¶
enum NoiseType:
- TYPE_OPEN_SIMPLEX_2 = 0
- TYPE_SIMPLEX = 1
- TYPE_PERLIN = 2
- TYPE_VALUE = 3
- TYPE_CELLULAR = 4
- TYPE_ENCODED_NODE_TREE = 5
enum FractalType:
- FRACTAL_NONE = 0
- FRACTAL_FBM = 1
- FRACTAL_RIDGED = 2
- FRACTAL_PING_PONG = 3
enum CellularDistanceFunction:
- CELLULAR_DISTANCE_EUCLIDEAN = 0
- CELLULAR_DISTANCE_EUCLIDEAN_SQ = 1
- CELLULAR_DISTANCE_MANHATTAN = 2
- CELLULAR_DISTANCE_HYBRID = 3
- CELLULAR_DISTANCE_MAX_AXIS = 4
enum CellularReturnType:
- CELLULAR_RETURN_INDEX_0 = 0
- CELLULAR_RETURN_INDEX_0_ADD_1 = 1
- CELLULAR_RETURN_INDEX_0_SUB_1 = 2
- CELLULAR_RETURN_INDEX_0_MUL_1 = 3
- CELLULAR_RETURN_INDEX_0_DIV_1 = 4
enum SIMDLevel:
- SIMD_NULL = 0
- SIMD_SCALAR = 1
- SIMD_SSE = 2
- SIMD_SSE2 = 4
- SIMD_SSE3 = 8
- SIMD_SSSE3 = 16
- SIMD_SSE41 = 32
- SIMD_SSE42 = 64
- SIMD_AVX = 128
- SIMD_AVX2 = 256
- SIMD_AVX512 = 512
- SIMD_NEON = 65536
Property Descriptions¶
-
int cellular_distance_function = 0
-
float cellular_jitter = 1.0
-
int cellular_return_type = 0
-
String encoded_node_tree = ""
-
float fractal_gain = 0.5
-
float fractal_lacunarity = 2.0
-
int fractal_octaves = 3
-
float fractal_ping_pong_strength = 2.0
-
int fractal_type = 0
-
int noise_type = 0
-
float period = 64.0
-
bool remap_enabled = false
-
float remap_input_max = 1.0
-
float remap_input_min = -1.0
-
float remap_output_max = 1.0
-
float remap_output_min = -1.0
-
int seed = 1337
-
bool terrace_enabled = false
-
float terrace_multiplier = 1.0
-
float terrace_smoothness = 0.0
Method Descriptions¶
-
void update_generator( )
Generated on Sep 12, 2023