Method psrnoise
psrnoise(float2, float2, Single)
2-D tiling simplex noise with rotating gradients, but without the analytical derivative.
Declaration
public static float psrnoise(float2 pos, float2 per, float rot)
Parameters
Type | Name | Description |
---|---|---|
float2 | pos | Input (x,y) coordinate. |
float2 | per | The x and y period, where per.x is a positive integer and per.y is a positive even integer. |
Single | rot | Angle to rotate the gradients. |
Returns
Type | Description |
---|---|
Single | Noise value. |
psrnoise(float2, float2)
2-D tiling simplex noise with fixed gradients, without the analytical derivative.
Declaration
public static float psrnoise(float2 pos, float2 per)
Parameters
Type | Name | Description |
---|---|---|
float2 | pos | Input (x,y) coordinate. |
float2 | per | The x and y period, where per.x is a positive integer and per.y is a positive even integer. |
Returns
Type | Description |
---|---|
Single | Noise value. |