phaser-jsx
    Preparing search index...

    Variable NoiseConst

    Noise: FC<ObjectProps<Noise> & RecursivePartial<Noise> & { shader: string }> = ...

    A Noise Game Object.

    This game object is a quad which displays random 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 Noise is a Phaser.GameObjects.Shader using a specific shader program.

    Noise or 'white noise' is simply random values. These are created by hashing the offset pixel coordinates, so the same noise is always created at the same position. This creates a reproducible effect.

    You can set the color and transparency of the noise.

    You can scroll the noise by animating the noiseOffset property. Note that floating-point precision is very important to this effect. Scrolling very large distances may cause blockiness in the output. Scrolling very small distances may cause the output to change completely, as it is not processing the same exact values. If you scroll by an exact fraction of the resolution of the object, the output will remain mostly the same, but it is not guaranteed to be stable. It's more effective to use setRenderToTexture and use this as a texture in a TileSprite.

    You can set noisePower to sculpt the output levels. Higher power reduces higher values. Lower power reduces lower values.