Skip to content

Commit

Permalink
Merge branch 'master' of github.com:NASA-AMMOS/3DTilesRendererJS
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 28, 2024
2 parents 43fa296 + d0e5ba0 commit ad10eb7
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 ad10eb7

Please sign in to comment.