phaser-jsx
    Preparing search index...

    Variable NoiseSimplex2DConst

    NoiseSimplex2D: FC<
        ObjectProps<NoiseSimplex2D> & RecursivePartial<NoiseSimplex2D> & {
            shader: string;
        },
    > = ...

    A NoiseSimplex2D object.

    This game object is a quad which displays simplex noise. You can manipulate this object like any other, make it interactive, and use it in filters and masks to create visually stunning effects.

    Behind the scenes, a NoiseSimplex2D is a Phaser.GameObjects.Shader using a specific shader program.

    Simplex noise is a smooth pattern ideal for soft, natural phenomena. It is useful for clouds, flame, water, and many other effects. Ken Perlin, the creator of Perlin Noise, created Simplex Noise to improve performance and quality over the original.

    By default, the noise pattern is periodic: it repeats. You can scroll in X and Y. You can also change the noiseFlow value to evolve the pattern along a periodic course.

    You can set the cell count, color and transparency of the pattern. You can add fine detail with noiseIterations. You can add turbulence with noiseWarpAmount.

    You can change the basic pattern with noiseSeed. Different seeds create completely different patterns.

    You can set noiseNormalMap to output a normal map. This is a quick way to add texture for lighting.

    For advanced users, you can configure the characteristics of octave iteration. Use noiseDetailPower, noiseFlowPower, and noiseContributionPower to adjust the exponential scaling rate of these values. Use noiseWarpDetailPower, noiseWarpFlowPower, and noiseWarpContributionPower to do the same for the warp effect.