feat: improved lighting and grid

This commit is contained in:
TrèsAbhi committed 2024-01-02 13:31:34 -06:00
1 parent e65582a432
commit 3ea872c6a4
7 files changed
+174 -21

No files matched your search

+9
View File
@@ -14,6 +14,10 @@ import { ScgStream, vertexAttributeVectorSizes } from '../streams/scg';
import { VertexAttribute } from '../streams/scpg';
import { readDVPLFile } from './readDVPLFile';
BigInt.prototype.toJSON = function () {
return this.toString();
};
const MAX_FLOAT32 = 2 ** 127 * (2 - 2 ** -23);
const vertexAttributeGLTFName: Partial<Record<VertexAttribute, string>> = {
@@ -168,9 +172,14 @@ export async function extractModel(
case 'NewSlotComponent':
case 'StateSwitcherComponent':
case 'CustomPropertiesComponent':
case 'ActionComponent':
case 'ParticleEffectComponent':
case 'SlotComponent':
case 'TankElementComponent':
break;
// console.log(JSON.stringify(component, null, 2));
case 'TransformComponent': {
const translation = new Vector3();
const rotation = new Quaternion();