Vector4 to float array

This commit is contained in:
Passive 2024-07-23 21:41:58 +10:00 committed by Ottermandias
parent fecdee05bd
commit 9de6b3a905

View file

@ -537,6 +537,7 @@ public class MeshExporter
=> data switch
{
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}"),
};
}