Difference between revisions of "Noise:setInterp"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 13: | Line 13: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Noise:setInterp(interpolation) | Noise:setInterp(interpolation) | ||
− | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === |
Revision as of 15:31, 13 July 2023
Available since: Gideros 2019.12
Class: Noise
Description
Changes the interpolation method used to smooth between noise values.
Possible interpolation methods (lowest to highest quality):
- Linear
- Hermite
- Quintic
Used in Value, Perlin Noise and Position Warping.
Default: Quintic
Noise:setInterp(interpolation)
Parameters
interpolation: (number) integer interpolation value