Skip to content

Instantly share code, notes, and snippets.

Last active Jul 24, 2020
What would you like to do?
// fov in Radians, camera position in [x, y, z]
const fovHeight = Math.tan(camera.fov / 2) * camera.position[2]
const fovWidth = fovHeight * camera.aspectRatio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment