Skip to content

Commit

Permalink
js: Update meshopt_encoder.module from NPM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Nov 21, 2021
1 parent d6275b8 commit 2126e7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/meshopt_encoder.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@ var MeshoptEncoder = (function() {
encodeFilterOct: function(source, count, stride, bits) {
assert(stride == 4 || stride == 8);
assert(bits >= 1 && bits <= 16);
return filter(instance.exports.meshopt_encodeFilterOct, source, count, stride, bits, 4);
return filter(instance.exports.meshopt_encodeFilterOct, source, count, stride, bits, 16);
},
encodeFilterQuat: function(source, count, stride, bits) {
assert(stride == 8);
assert(bits >= 4 && bits <= 16);
return filter(instance.exports.meshopt_encodeFilterQuat, source, count, stride, bits, 4);
return filter(instance.exports.meshopt_encodeFilterQuat, source, count, stride, bits, 16);
},
encodeFilterExp: function(source, count, stride, bits) {
assert(stride > 0 && stride % 4 == 0);
assert(bits >= 1 && bits <= 24);
return filter(instance.exports.meshopt_encodeFilterExp, source, count, stride, bits, stride/4);
return filter(instance.exports.meshopt_encodeFilterExp, source, count, stride, bits, stride);
},
};
})();
Expand Down

0 comments on commit 2126e7b

Please sign in to comment.