Skip to main content
Version: Phaser v4.0.0

Types.GameObjects.NoiseSimplex3D

NoiseSimplex3DConfig

<static> NoiseSimplex3DConfig

nametypeoptionaldefaultdescription
configstring | Phaser.Types.GameObjects.NoiseSimplex3D.NoiseSimplex3DQuadConfigYesThe configuration object this NoiseSimplex3D will use.
widthnumberYes128The width of the Game Object.
heightnumberYes128The height of the Game Object.

Type: object

Member of: Phaser.Types.GameObjects.NoiseSimplex3D

Source: src/gameobjects/noise/noisesimplex3d/typedefs/NoiseSimplex3DConfig.js#L1
Since: 4.0.0


NoiseSimplex3DQuadConfig

<static> NoiseSimplex3DQuadConfig

nametypeoptionaldefaultdescription
noiseCellsArray.<number>Yes"[ 32, 32, 32 ]"The number of cells in each dimension.
noisePeriodArray.<number>YesHow many cells in each dimension before the pattern repeats. By default, this is the same as noiseCells.
noiseOffsetArray.<number>Yes"[ 0, 0, 0 ]"The offset of the noise texture.
noiseFlownumberYes0The initial flow of the noise field. Use this to evolve the field along a period.
noiseWarpAmountnumberYes0How much turbulence to apply to the noise field.
noiseIterationsnumberYes1How many octaves of noise to render, creating a more detailed output.
noiseWarpIterationsnumberYes1How many octaves of noise to apply as turbulence, if noiseWarpAmount is greater than 0.
noiseNormalMapbooleanYesfalseWhether to convert the noise to a normal map.
noiseNormalScalenumberYes1How much curvature to include in the normal map, if noiseNormalMap is enabled.
noiseColorStartnumber | stringArray.<number>Phaser.Display.ColorYes
noiseColorEndnumber | stringArray.<number>Phaser.Display.ColorYes
noiseDetailPowernumberYes2How much to increase detail per octave.
noiseFlowPowernumberYes2How much to increase flow per octave.
noiseContributionPowernumberYes2How much to shrink the contribution per octave.
noiseWarpDetailPowernumberYes2How much to increase warp detail per octave.
noiseWarpFlowPowernumberYes2How much to increase warp flow per octave.
noiseWarpContributionPowernumberYes2How much to shrink the warp contribution per octave.
noiseValueFactornumberYes0.5How much to scale the noise value for output.
noiseValueAddnumberYes0.5How much to add to the noise value for output.
noiseValuePowernumberYes1Exponent to apply to the noise value for output.
noiseSeedArray.<number>Yes"[ 1, 2, 3 ]"The hash seed. Each seed creates a different pattern. The numbers must be integers.

Type: object

Member of: Phaser.Types.GameObjects.NoiseSimplex3D

Source: src/gameobjects/noise/noisesimplex3d/typedefs/NoiseSimplex3DQuadConfig.js#L1
Since: 4.0.0