toMatrix method

Matrix4 toMatrix ()

Creates a transformation matrix that applies the devicePixelRatio.

Implementation

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