Skip to content

Commit

Permalink
delete unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
softmare committed Jun 28, 2022
1 parent 476f379 commit 1720639
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pages/compare/threejs.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import ModelComponent from "@components/models/knight";
import { ARCanvas } from "@react-three/xr";
import type { NextPage } from "next";
import { lazy, Suspense } from "react";

const Threejs_Demo: NextPage = () => {
const ModelComponent = lazy(() => import("@components/models/knight"));
return (
<div className="h-screen w-screen">
<Suspense fallback={"loading..."}>
<ARCanvas >
<ambientLight />
<pointLight position={[10, 10, 10]} />
<ModelComponent />
</ARCanvas>
</Suspense>
<ARCanvas>
<ambientLight />
<pointLight position={[10, 10, 10]} />
<ModelComponent />
</ARCanvas>
</div>
);
};
Expand Down

0 comments on commit 1720639

Please sign in to comment.