(fovy, aspect, near, far)
| 1504 | near; |
| 1505 | far; |
| 1506 | constructor(fovy, aspect, near, far){ |
| 1507 | fovy = fovy.toRad(); |
| 1508 | this.fovy = fovy; |
| 1509 | this.aspect = aspect; |
| 1510 | this.near = near; |
| 1511 | this.far = far; |
| 1512 | } |
| 1513 | toPerspective() { |
| 1514 | const angle = this.fovy.div(2); |
| 1515 | const ymax = this.near * angle.tan(); |