Inherits: Resource < RefCounted < Object
Inherited By: FastNoiseLite
Abstract base class for noise generators.
This class defines the interface for noise generation libraries to inherit from.
A default get_seamless_image implementation is provided for libraries that do not provide seamless noise. This function requests a larger image from the get_image method, reverses the quadrants of the image, then uses the strips of extra width to blend over the seams.
Inheriting noise classes can optionally override this function to provide a more optimal algorithm.
get_image ( int width, int height, bool invert=false, bool in_3d_space=false, bool normalize=true ) const | |
get_image_3d ( int width, int height, int depth, bool invert=false, bool normalize=true ) const | |
get_noise_1d ( float x ) const | |
get_noise_2d ( float x, float y ) const | |
get_noise_2dv ( Vector2 v ) const | |
get_noise_3d ( float x, float y, float z ) const | |
get_noise_3dv ( Vector3 v ) const | |
get_seamless_image ( int width, int height, bool invert=false, bool in_3d_space=false, float skirt=0.1, bool normalize=true ) const | |
get_seamless_image_3d ( int width, int height, int depth, bool invert=false, float skirt=0.1, bool normalize=true ) const |
Returns an Image containing 2D noise values.
Note: With normalize set to false, the default implementation expects the noise generator to return values in the range -1.0 to 1.0.
Returns an Array of Images containing 3D noise values for use with ImageTexture3D.create.
Note: With normalize set to false, the default implementation expects the noise generator to return values in the range -1.0 to 1.0.
Returns the 1D noise value at the given (x) coordinate.
Returns the 2D noise value at the given position.
Returns the 2D noise value at the given position.
Returns the 3D noise value at the given position.
Returns the 3D noise value at the given position.
Returns an Image containing seamless 2D noise values.
Note: With normalize set to false, the default implementation expects the noise generator to return values in the range -1.0 to 1.0.
Returns an Array of Images containing seamless 3D noise values for use with ImageTexture3D.create.
Note: With normalize set to false, the default implementation expects the noise generator to return values in the range -1.0 to 1.0.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_noise.html