Update Healer Man server
This commit is contained in:
1 parent
6114a2295f
commit
69809f7228
593 files changed
+903643
-40774
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Preserve source topology because simplification damages the atlas UV seams
|
||||
* used by RoM environment meshes. Keep optimization focused on mesh size and
|
||||
* repeated placements. Texture work is disabled here because the CLI's
|
||||
* default auto-compressor resizes images to 2048px; a separate KTX2 pass encodes
|
||||
* the full-size source images without changing their dimensions.
|
||||
*/
|
||||
export function environmentOptimizationArguments(sourceFile, outputFile, {
|
||||
preserveNativeWaterLayers = false,
|
||||
preserveMaterialVariantCarriers = false,
|
||||
} = {}) {
|
||||
return [
|
||||
"optimize", sourceFile, outputFile,
|
||||
"--compress", "meshopt", "--meshopt-level", "high",
|
||||
"--instance", "true", "--instance-min", "3",
|
||||
"--simplify", "false",
|
||||
"--texture-compress", "false",
|
||||
// KHR_materials_variants can carry native water maps or browser-adapted
|
||||
// surface-detail maps. Joining/pruning sees only the default material and
|
||||
// can discard a carrier, its UVs, or its mapping before runtime selection.
|
||||
...((preserveNativeWaterLayers || preserveMaterialVariantCarriers)
|
||||
? ["--join", "false", "--prune", "false", "--prune-attributes", "false"]
|
||||
: []),
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user