Static
Static noise produce a noise function using a static data source, like an array of values, or an existing texture. It can be used to convert a texture to a noise function. The parameters of the static noise defines how the noise is generated when accessing values outside of the source texture.
Node inputs/outputs
The module’s constructor needs:
Static Initializer : the data source for the new noise
Static Offset : an offset value that will be used to displace the noise
Static Scale : a scaling value that will be used to scale the noise, usually set according to the width and the height of the source texture
Static Mode : the generation mode, used when accessing values outside of the texture
Static Noise Interpolation : the interpolation strategy, either NEAREST or LINEAR
The output value is a Generation Module
Initializer
There exists two kind of initializers :
Texture2DInitializer which takes a 2D texture as an input
ManualInitializer which takes an array of floats and a width as an input
Examples
The following examples are made using the Texture2DInitializer initialized with a 512×512 texture produced with Sine.
StaticScale = 512.0 512.0, Static Mode = REPEAT
It reproduces exactly the source texture.
StaticScale = 1024.0 512.0, Static Mode = REPEAT
The texture is repeated along the X-axis.
StaticScale = 1024.0 512.0, Static Mode = MIRRORED_REPEAT
The texture is repeated but in a mirrored way along the X-axis
StaticScale = 1024.0 1024.0, Static Mode = MIRRORED_REPEAT
The texture is repeated in a mirrored way along both the X-axis and the Y-axis
StaticScale = 1024.0 1024.0, Static Mode = CLAMP_TO_EDGE
The values outside of the texture comes from the stretched borders of the texture
StaticScale = 1024.0 1024.0, Static Mode = CLAMP_TO_BORDER
The values outside of the texture are equals to 0
StaticOffset = -0.1 -0.1, StaticScale = 1024.0 1024.0, Static Mode = CLAMP_TO_BORDER
Like the previous one, but with an offset.