Phaser API Documentation

  Version: 
setTime(name, [shader])

Description:

Sets the current duration into a 1f uniform value based on the given name.

This can be used for mapping time uniform values, such as iTime.

Parameters:

name type arguments description
name string

The name of the uniform to set.

shader Phaser.Renderer.WebGL.WebGLShader <optional>

The shader to set the value on. If not given, the currentShader is used.

Returns:
Description:

This WebGLPipeline instance.

Since: 3.50.0