mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
correct axes
This commit is contained in:
1 parent
5d4e0541b2
commit
f73ffc3c93
3 files changed
+31
-19
No files matched your search
@@ -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 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user