Noise:setInterp

From GiderosMobile
Revision as of 14:30, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

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 <syntaxhighlight lang="lua"> Noise:setInterp(interpolation) </source>

Parameters

interpolation: (number) integer interpolation value