Phaser API Documentation

  Version: 
setProjectionMatrix(width, height)

Description:

Sets the Projection Matrix of this renderer to the given dimensions.

Parameters:

name type description
width number

The new width of the Projection Matrix.

height number

The new height of the Projection Matrix.

Returns:
Description:

This WebGLRenderer instance.

Examples:
Since: 3.50.0