Skip to content

Commit

Permalink
If no coordinates, then zero out camera positions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
oo-bldrs authored Sep 21, 2023
1 parent 236eece commit aeb132a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ app.post('/render', async (req, res) => {
if (coordinates.length === 6) {
camera.position.set(coordinates[0], coordinates[1], coordinates[2])
camera.lookAt(coordinates[3], coordinates[4], coordinates[5])
} else {
camera.position.set(0, 0, 0)
camera.lookAt(0, 0, 0)
}

const useSsaa = false
Expand Down

0 comments on commit aeb132a

Please sign in to comment.