()
| 65 | } |
| 66 | |
| 67 | function onWindowResize() { |
| 68 | // Camera frustum aspect ratio |
| 69 | camera.aspect = window.innerWidth / window.innerHeight; |
| 70 | // After making changes to aspect |
| 71 | camera.updateProjectionMatrix(); |
| 72 | // Reset size |
| 73 | renderer.setSize(window.innerWidth, window.innerHeight); |
| 74 | } |
| 75 | |
| 76 | window.addEventListener("resize", onWindowResize, false); |
| 77 |
nothing calls this directly
no outgoing calls
no test coverage detected