Skip to content

Commit

Permalink
changed meshopt test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsErdkamp committed May 30, 2024
1 parent 4cf2aa7 commit 1c7107a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/gltf.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect } from "chai";
import { MeshoptDecoder } from "meshoptimizer";

describe("glTF", () => {
it("should render separate correctly using pixi *.*.*", async () => {
Expand Down Expand Up @@ -52,7 +53,9 @@ describe("glTF", () => {
it("should render meshopt correctly using pixi *.*.*", async () => {
let render = (renderer, resources) => {
let model = PIXI3D.Model.from(
resources["assets/teapot/teapot-binary-meshopt.glb"].gltf
resources["assets/teapot/teapot-binary-meshopt.glb"].gltf,
undefined,
MeshoptDecoder
);
model.y = -0.8;
model.meshes.forEach((mesh) => {
Expand Down

0 comments on commit 1c7107a

Please sign in to comment.