mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Vector4 to float array
This commit is contained in:
parent
fecdee05bd
commit
9de6b3a905
1 changed files with 1 additions and 0 deletions
|
|
@ -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}"),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue