flimshaw / Valiant360

An in-browser 360 degree panorama video player.
http://flimshaw.github.io/Valiant360/
MIT License
777 stars 151 forks source link

Fix for fov to be correctly set in defaults; add fovMin and fovMax to defaults; documentation updated #19

Closed noosphere2 closed 8 years ago

noosphere2 commented 9 years ago

fov wasn't correctly being set for some reason on the THREE.PerspectiveCamera until setLens() was called in the mouse wheel event handler. This fix calls setLens directly after PerspectiveCamera creation.

Add fovMin and fovMax to defaults/passed opts object.