Graphics Reference
In-Depth Information
There's more…
In this recipe, we set each of the properties separately.
THREE.PerspectiveCamera also provides a constructor that you can use to set
all these properties in one statement:
camera = new THREE.PerspectiveCamera(45,
window.innerWidth / window.innerHeight, 0.1,
1000);
Also remember that THREE.PerspectiveCamera extends from the standard
Three.js THREE.Object3D object. This means that this camera can be rotated and
moved around just like any other object.
See also
• In the Zooming the camera to an object recipe, we used the fov property of
the camera to zoom in on an object, and in the Using an orthographic camera
recipe, we will show you the second of the two cameras provided by Three.js,
which is THREE.OrthographicCamera .
Search WWH ::




Custom Search