Release Healer Man 0.1.7
This commit is contained in:
@@ -404,15 +404,23 @@ async function optimizeStage(slug) {
|
||||
const source = path.join(staging, entry.path);
|
||||
const outputName = optimizedChunkName(role, index, entries.length);
|
||||
const output = path.join(staging, outputName);
|
||||
await run(process.execPath, [
|
||||
cli,
|
||||
"meshopt",
|
||||
source,
|
||||
output,
|
||||
"--level",
|
||||
"high",
|
||||
]);
|
||||
if (role === "visual") {
|
||||
await run(process.execPath, [
|
||||
cli,
|
||||
"optimize",
|
||||
source,
|
||||
output,
|
||||
"--compress",
|
||||
"meshopt",
|
||||
"--meshopt-level",
|
||||
"high",
|
||||
"--instance",
|
||||
"true",
|
||||
"--instance-min",
|
||||
"3",
|
||||
"--texture-size",
|
||||
"2048",
|
||||
]);
|
||||
await run(process.execPath, [
|
||||
path.join(projectRoot, "scripts/asset-pipeline/compress-ktx2.mjs"),
|
||||
output,
|
||||
@@ -421,6 +429,15 @@ async function optimizeStage(slug) {
|
||||
"--jobs",
|
||||
"2",
|
||||
]);
|
||||
} else {
|
||||
await run(process.execPath, [
|
||||
cli,
|
||||
"meshopt",
|
||||
source,
|
||||
output,
|
||||
"--level",
|
||||
"high",
|
||||
]);
|
||||
}
|
||||
const geometry = await inspectGlb(output);
|
||||
const descriptor = {
|
||||
|
||||
Reference in New Issue
Block a user