GeneratorsGetPerlinNoise Method |
Get a perlin noise value for a given x,y position with an offset calculated from a drivingValue
Namespace:
WeatherSystem.Internal
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static float GetPerlinNoise(
float x,
float y,
float maxX,
float maxY,
float scale,
float offset
)
Parameters
- x
- Type: SystemSingle
The x position - y
- Type: SystemSingle
The y position - maxX
- Type: SystemSingle
The maximum possible value of x - maxY
- Type: SystemSingle
The maximum possible value of y - scale
- Type: SystemSingle
A scale for the output, applied before the offset value - offset
- Type: SystemSingle
An offset value
Return Value
Type:
SingleThe resultant float value
See Also