Phaser API Documentation

  Version: 
uniforms: any

Description:

The default uniform mappings. These can be added to (or replaced) by specifying your own uniforms when creating this shader game object. The uniforms are updated automatically during the render step.

The defaults are:

resolution (2f) - Set to the size of this shader. time (1f) - The elapsed game time, in seconds. mouse (2f) - If a pointer has been bound (with setPointer), this uniform contains its position each frame. date (4fv) - A vec4 containing the year, month, day and time in seconds. sampleRate (1f) - Sound sample rate. 44100 by default. iChannel0...3 (sampler2D) - Input channels 0 to 3. null by default.

Type:
any
Since: 3.17.0