mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: glb convertion
This commit is contained in:
1 parent
9db43db3cf
commit
6d2bb7b131
3 files changed
+207
-45
No files matched your search
@@ -34,7 +34,7 @@ enum KAType {
|
||||
UNCONFIRMED_TRANSFORM = 29,
|
||||
}
|
||||
|
||||
enum VertexType {
|
||||
export enum VertexType {
|
||||
VERTEX,
|
||||
NORMAL,
|
||||
COLOR,
|
||||
@@ -90,14 +90,18 @@ const VECTOR_SIZES = [
|
||||
[
|
||||
VertexType.VERTEX,
|
||||
VertexType.NORMAL,
|
||||
VertexType.TANGENT,
|
||||
VertexType.BINORMAL,
|
||||
VertexType.CUBETEXCOORD0,
|
||||
VertexType.CUBETEXCOORD1,
|
||||
VertexType.CUBETEXCOORD2,
|
||||
VertexType.CUBETEXCOORD3,
|
||||
],
|
||||
[VertexType.PIVOT4, VertexType.JOINTINDEX, VertexType.JOINTWEIGHT],
|
||||
[
|
||||
VertexType.PIVOT4,
|
||||
VertexType.JOINTINDEX,
|
||||
VertexType.JOINTWEIGHT,
|
||||
VertexType.TANGENT,
|
||||
],
|
||||
];
|
||||
|
||||
export class SCPGStream {
|
||||
@@ -252,6 +256,8 @@ export class SCPGStream {
|
||||
});
|
||||
}
|
||||
|
||||
console.log(verticesStream.readRemaining().length);
|
||||
|
||||
return {
|
||||
id: polygonGroupRaw['#id'].readBigUInt64LE(),
|
||||
vertices,
|
||||
|
||||
Reference in new issue
Block a user