Phaser API Documentation

  Version: 
setProjectionMatrix(width, height)

Description:

Adjusts this pipelines ortho Projection Matrix to use the given dimensions and resets the uProjectionMatrix uniform on all bound shaders.

This method is called automatically by the renderer during its resize handler.

Parameters:

name type description
width number

The new width of this WebGL Pipeline.

height number

The new height of this WebGL Pipeline.

Returns:
Description:

This WebGLPipeline instance.

Since: 3.50.0