correct axes

This commit is contained in:
tresabhi committed 2026-09-30 19:00:25 -05:00
1 parent 5d4e0541b2
commit f73ffc3c93
3 files changed
+31 -19

No files matched your search

+6 -9
View File
@@ -1,8 +1,8 @@
import { ScpgReadStream, VertexAttribute } from './scpg';
import { ScpgReadStream, VertexAttribute } from "./scpg";
interface PolygonGroupRaw {
'##name': 'PolygonGroup';
'#id': ArrayBuffer;
"##name": "PolygonGroup";
"#id": ArrayBuffer;
cubeTextureCoordCount: number;
indexCount: number;
indexFormat: 0 | 1;
@@ -24,7 +24,7 @@ interface BlitzkitPolygonGroup {
}
const vertexAttributesArray = Object.values(VertexAttribute).filter(
(value) => typeof value === 'number',
(value) => typeof value === "number",
);
export const vertexAttributeVectorSizes = {
@@ -105,11 +105,8 @@ export class ScgReadStream extends ScpgReadStream {
}
polygonGroups.set(
new DataView(polygonGroupRaw['#id']).getBigUint64(0, true),
{
vertices,
indices,
},
new DataView(polygonGroupRaw["#id"]).getBigUint64(0, true),
{ vertices, indices },
);
});