mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: more game parity x2
This commit is contained in:
1 parent
b90938108a
commit
12ee9d381d
4 files changed
+17
-4
No files matched your search
@@ -518,6 +518,8 @@ if (allTargets || targets?.includes('tankModels')) {
|
|||||||
// if (id !== 4417) continue; // amx m4 mle
|
// if (id !== 4417) continue; // amx m4 mle
|
||||||
// if (id !== 7297) continue; // 60tp
|
// if (id !== 7297) continue; // 60tp
|
||||||
// if (id !== 1) continue; // t-34
|
// if (id !== 1) continue; // t-34
|
||||||
|
// if (id !== 6753) continue; // type 71
|
||||||
|
// if (id !== 5137) continue; // tiger ii
|
||||||
|
|
||||||
console.log(`Building model ${id} @ ${nation}/${tankIndex}`);
|
console.log(`Building model ${id} @ ${nation}/${tankIndex}`);
|
||||||
|
|
||||||
|
|||||||
@@ -141,9 +141,11 @@ export async function extractModel(
|
|||||||
|
|
||||||
components.forEach((component) => {
|
components.forEach((component) => {
|
||||||
switch (component['comp.typename']) {
|
switch (component['comp.typename']) {
|
||||||
|
case 'ScenarioComponent':
|
||||||
case 'LodComponent':
|
case 'LodComponent':
|
||||||
case 'DecorItemComponent':
|
case 'DecorItemComponent':
|
||||||
case 'NewSlotComponent':
|
case 'NewSlotComponent':
|
||||||
|
case 'StateSwitcherComponent':
|
||||||
case 'SlotComponent':
|
case 'SlotComponent':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -74,9 +74,9 @@ export async function readTexture(path: string, options?: ReadTextureOptions) {
|
|||||||
const b = dds.data[index + 2] / 255;
|
const b = dds.data[index + 2] / 255;
|
||||||
const a = dds.data[index + 3] / 255;
|
const a = dds.data[index + 3] / 255;
|
||||||
const invA = 1 - a;
|
const invA = 1 - a;
|
||||||
const rPrime = invA * options.baseColor[0] + r;
|
const rPrime = r + invA * options.baseColor[0];
|
||||||
const gPrime = invA * options.baseColor[1] + g;
|
const gPrime = g + invA * options.baseColor[1];
|
||||||
const bPrime = invA * options.baseColor[2] + b;
|
const bPrime = b + invA * options.baseColor[2];
|
||||||
|
|
||||||
dds.data[index] = Math.round(clamp(rPrime * 255, 0, 255));
|
dds.data[index] = Math.round(clamp(rPrime * 255, 0, 255));
|
||||||
dds.data[index + 1] = Math.round(clamp(gPrime * 255, 0, 255));
|
dds.data[index + 1] = Math.round(clamp(gPrime * 255, 0, 255));
|
||||||
|
|||||||
+10
-1
@@ -168,7 +168,16 @@ export type Component =
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
| {
|
||||||
|
'comp.typename': 'ScenarioComponent';
|
||||||
|
'scenario.scriptId': string;
|
||||||
|
}
|
||||||
|
| ({
|
||||||
|
'comp.typename': 'StateSwitcherComponent';
|
||||||
|
'ssc.activeState': number;
|
||||||
|
'ssc.statesCount': number;
|
||||||
|
} & Record<`ssc.state${number}`, string>);
|
||||||
|
|
||||||
interface SceneComponents {
|
interface SceneComponents {
|
||||||
count: number;
|
count: number;
|
||||||
|
|||||||
Reference in new issue
Block a user