class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource Noise
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.

Image get_image<>( int width=, width:int=, int height=, height:int=, bool invert=false, invert:bool=false, bool in_3d_space=false, in_3d_space:bool=false, bool normalize=true, normalize:bool=true, ):Image

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.

Image[] get_image_3d<>( int width=, width:int=, int height=, height:int=, int depth=, depth:int=, bool invert=false, invert:bool=false, bool normalize=true, normalize:bool=true, ):Image[]

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.

float get_noise_1d<>( float x=, x:float=, ):float

Returns the 1D noise value at the given (x) coordinate.

float get_noise_2d<>( float x=, x:float=, float y=, y:float=, ):float

Returns the 2D noise value at the given position.

float get_noise_2dv<>( Vector2 v=, v:Vector2=, ):float

Returns the 2D noise value at the given position.

float get_noise_3d<>( float x=, x:float=, float y=, y:float=, float z=, z:float=, ):float

Returns the 3D noise value at the given position.

float get_noise_3dv<>( Vector3 v=, v:Vector3=, ):float

Returns the 3D noise value at the given position.

Image get_seamless_image<>( int width=, width:int=, int height=, height:int=, bool invert=false, invert:bool=false, bool in_3d_space=false, in_3d_space:bool=false, float skirt=0.1, skirt:float=0.1, bool normalize=true, normalize:bool=true, ):Image

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.

Image[] get_seamless_image_3d<>( int width=, width:int=, int height=, height:int=, int depth=, depth:int=, bool invert=false, invert:bool=false, float skirt=0.1, skirt:float=0.1, bool normalize=true, normalize:bool=true, ):Image[]

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.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...