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:

The output value is a Generation Module

Initializer

There exists two kind of initializers :

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.