Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson authored Oct 28, 2024
1 parent 2933415 commit d0e5ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/r3f/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ Set of components for loading and rendering 3D Tiles in [@react-three/fiber](htt
import { TilesRenderer } from '3d-tiles-renderer/r3f';

const TILESET_URL = /* your tile set url */;
const cameraPosition = [ x, y, z ]; // Set the camera position so the tiles are visible
export default function App() {
return (
<Canvas>
<Canvas camera={ { position: cameraPosition } }>
<TilesRenderer url={ TILESET_URL } />
</Canvas>
);
Expand Down

0 comments on commit d0e5ba0

Please sign in to comment.