Noise:setCellularDistanceFunction: Difference between revisions
From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight" |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| Line 8: | Line 8: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Noise:setCellularDistanceFunction(distance) | Noise:setCellularDistanceFunction(distance) | ||
</ | </syntaxhighlight> | ||
=== Parameters === | === Parameters === | ||
Revision as of 13:31, 13 July 2023
Available since: Gideros 2019.12
Class: Noise
Description
Sets the distance function used in cellular noise calculations.
Default: Euclidean
Noise:setCellularDistanceFunction(distance)
Parameters
distance: (constant) distance function