mirror of
https://github.com/openharmony/third_party_meshoptimizer.git
synced 2026-07-19 20:03:59 -04:00
js: Expose new simplification options
Note that this change doesn't rebuild the Wasm bundle; the options should just work once that is done.
This commit is contained in:
@@ -155,6 +155,8 @@ var MeshoptSimplifier = (function() {
|
||||
|
||||
var simplifyOptions = {
|
||||
LockBorder: 1,
|
||||
Sparse: 2,
|
||||
ErrorAbsolute: 4,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// This file is part of meshoptimizer library and is distributed under the terms of MIT License.
|
||||
// Copyright (C) 2016-2024, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
||||
export type Flags = "LockBorder";
|
||||
export type Flags = "LockBorder" | "Sparse" | "ErrorAbsolute";
|
||||
|
||||
export const MeshoptSimplifier: {
|
||||
supported: boolean;
|
||||
|
||||
@@ -154,6 +154,8 @@ var MeshoptSimplifier = (function() {
|
||||
|
||||
var simplifyOptions = {
|
||||
LockBorder: 1,
|
||||
Sparse: 2,
|
||||
ErrorAbsolute: 4,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user