| x[, y[, z[,t]]]) |
As an example, here is a 2D slice (the grid shows the integer lattice):
Note: The actual function call depends on the number of arguments, so calling noise(x,y) is not the same as calling noise(x,y,0). The former case is a true 2D noise whereas the latter is 3D. The same difference exists between 3D and 4D.
| x[, y[, z[,t]]]) |
snoise(args) is equivalent to 2*noise(args)-1.
| point[, t], period[, tperiod]) |
| point[, t], period[, tperiod]) |
spnoise(args) is equivalent to
2*pnoise(args)-1.
| x[, y[, z[,t]]]) |
As an example, here is a 2D slice (the grid shows the integer lattice):
| x[, y[, z[,t]]]) |
scellnoise(args) is equivalent to 2*cellnoise(args)-1.
| point, octaves, lacunarity=2.0, gain=0.5) |
sum = 0.0
amp = 1.0
for i in range(octaves):
sum += amp*snoise(point)
amp *= gain
point *= lacunarity
The return value is in the range from 0 to 1.
As an example, here is a 2D slice (the grid shows the integer lattice):
| point, octaves, lacunarity=2.0, gain=0.5) |
abs(snoise()) instead of noise().
However, the return value is in the range from 0 to 1.
As an example, here is a 2D slice (the grid shows the integer lattice):
All of the above functions have a vector version that take the same
input parameters but return a vector as result. The output always has
the same dimension than the input. If the time value is specified
separately it does not count to the dimension. For example a call to
vnoise((x,y,z)) returns a vec3, just as a call to
vnoise((x,y,z),t). However, a call to vnoise((x,y,z,t))
returns a vec4.
| x[, y[, z[,t]]]) |
| x[, y[, z[,t]]]) |
| point[, t], period[, tperiod]) |
| point[, t], period[, tperiod]) |
| x[, y[, z[,t]]]) |
| x[, y[, z[,t]]]) |
| point, octaves, lacunarity=2.0, gain=0.5) |
| point, octaves, lacunarity=2.0, gain=0.5) |