()
| 186 | |
| 187 | // resize the renderer to fit the window size |
| 188 | function resize () |
| 189 | { |
| 190 | let width = window.innerWidth; |
| 191 | let height = window.innerHeight |
| 192 | |
| 193 | camera = new t.OrthographicCamera(0, width, 0, height, -10000, 10000); |
| 194 | camera.updateProjectionMatrix(); |
| 195 | renderer.setSize( width, height ); |
| 196 | } |
| 197 | } |