toMatrix4 method
Implementation
Matrix4 toMatrix4([double? fallbackPerspective]) {
final p = perspective ?? fallbackPerspective ?? 0;
return Matrix4.identity()
..setEntry(3, 2, 0.001 + p * 0.004)
..rotateX(x)
..rotateY(y)
..rotateZ(z);
}