Matrix4 toMatrix()

Creates a transformation matrix that applies the devicePixelRatio.

Source

Matrix4 toMatrix() {
  return new Matrix4.diagonal3Values(devicePixelRatio, devicePixelRatio, 1.0);
}