uploadMatrix method
Implementation
void uploadMatrix(Matrix4 matrix, {int offset = 0}) {
final storage = matrix.storage;
final f32 = Float32List(16);
for (int i = 0; i < 16; i++) {
f32[i] = storage[i];
}
final bytes = f32.buffer.asUint8List();
updateRawOffset(bytes, offset);
}