Vector4 to float array

This commit is contained in:
Passive 2024-07-23 21:41:58 +10:00
parent 69a79131d0
commit c2085781f4

View file

@ -538,6 +538,7 @@ public class MeshExporter
=> data switch => data switch
{ {
byte[] value => value.Select(x => x / 255f).ToArray(), byte[] value => value.Select(x => x / 255f).ToArray(),
Vector4 v4 => new[] { v4.X, v4.Y, v4.Z, v4.W },
_ => throw new ArgumentOutOfRangeException($"Invalid float[] input {data}"), _ => throw new ArgumentOutOfRangeException($"Invalid float[] input {data}"),
}; };
} }