Skip to content

Commit

Permalink
feat(web): add area lights to map viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Jan 11, 2024
1 parent 07cd006 commit 42b454a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
32 changes: 16 additions & 16 deletions packages/spelunker-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/spelunker-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"dependencies": {
"@apollo/client": "^3.8.8",
"@wowserhq/format": "^0.12.0",
"@wowserhq/scene": "^0.16.1",
"@wowserhq/format": "^0.13.1",
"@wowserhq/scene": "^0.17.0",
"classnames": "^2.3.1",
"crypto-hash": "^2.0.0",
"graphql": "^16.8.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const MapViewer = ({ map: { id, filename } }) => {
controls.setView(view);

const mapManager = new MapManager({ host: assetHost, textureManager });
mapManager.load(filename);
mapManager.load(filename, id);
mapManagerRef.current = mapManager;

scene.add(mapManager.root);
Expand All @@ -95,6 +95,7 @@ const MapViewer = ({ map: { id, filename } }) => {
controls.update(delta);
mapManager.update(delta, camera);

renderer.setClearColor(mapManager.clearColor);
renderer.render(scene, camera);

rafId = requestAnimationFrame(animate);
Expand Down

0 comments on commit 42b454a

Please sign in to comment.