Skip to content

Commit

Permalink
Fix the default up in the sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
sgenoud committed Sep 27, 2024
1 parent b126ef7 commit ee4a06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/replicad-app-example/src/ThreeContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as THREE from "three";

// We change the default orientation - threejs tends to use Y are the height,
// while replicad uses Z. This is mostly a representation default.
THREE.Object3D.DefaultUp.set(0, 0, 1);
THREE.Object3D.DEFAULT_UP.set(0, 0, 1);

// This is the basics to render a nice looking model user react-three-fiber
//
Expand All @@ -32,7 +32,7 @@ export default function ThreeContext({ children, ...props }) {
{...props}
>
<OrbitControls />
<ambientLight />
<ambientLight intensity={4} />
<pointLight position={[100, 100, 100]} />
{children}
</Canvas>
Expand Down

0 comments on commit ee4a06d

Please sign in to comment.