Skip to content

Commit

Permalink
Added minZoom and maxZoom options (#38)
Browse files Browse the repository at this point in the history
* Added minZoom and maxZoom options
* Supported custom nearCameraFade
* Added activemodelchange event
* Added `keepModels` flags to all remove methods
  • Loading branch information
alxart authored Nov 8, 2024
1 parent aee1fb5 commit 02ac35b
Show file tree
Hide file tree
Showing 37 changed files with 643 additions and 80 deletions.
3 changes: 3 additions & 0 deletions demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ async function start() {
color: '#FFF3F3',
},
groundCoveringColor: 'rgba(0, 0, 0, 0.8)',
minZoom: 15,
maxZoom: 20,
modelsNearCameraFade: 0,
});

(window as any).gltfPlugin = plugin;
Expand Down
Binary file added demo/models/palm.glb
Binary file not shown.
Binary file added demo/models/pine.glb
Binary file not shown.
Loading

0 comments on commit 02ac35b

Please sign in to comment.