mrdoob/three.js — Issue #735: calculate size of frustum as a function of z distance to camera
Author: herforragend
Created: 2011-11-08 18:23:57+00:00
State: open

hi,

i want to create a rectangle which fills the screen exactly,
example:
```camera.position.z = 500;```
```...```
```var cube = new THREE.CubeGeometry( 1, 1, 1);```
```...```
```cubeMesh.position.x = 0; cubeMesh.position.y = 0; cubeMesh.position.z = 0;```
```cubeMesh.scale.x = ???;```
```cubeMesh.scale.y = ???;```

so here is the distance from the camera to the object 500.
is there a easy way to calculate ???