Use System.Half

This commit is contained in:
VaDiM
2025-07-13 20:40:34 +03:00
parent f0029520fb
commit 6f8f1a5a8a
4 changed files with 72 additions and 54 deletions
+1 -1
View File
@@ -1413,7 +1413,7 @@ namespace AssetStudio
result[i] = BitConverter.ToSingle(inputBytes, i * 4);
break;
case VertexFormat.Float16:
result[i] = Half.ToHalf(inputBytes, i * 2);
result[i] = (float)HalfHelper.ToHalf(inputBytes, i * 2);
break;
case VertexFormat.UNorm8:
result[i] = inputBytes[i] / 255f;