setProjectionMatrix method

void setProjectionMatrix(
  1. Matrix4 matrix
)

Sets the projection matrix used by the shaders.

  • matrix: The Matrix4 to use as the projection matrix.

Implementation

void setProjectionMatrix(Matrix4 matrix) {
  flush();
  _renderState.projectionMatrix.setFrom(matrix);
  _renderer.setProjection(Float32List.fromList(_renderState.projectionMatrix.storage));
}