top | item 32383134 (no title) jaeh | 3 years ago do you mean like this? const onResize = () => { const { innerWidth: w, innerHeight: h } = window camera.aspect = w / h camera.updateProjectionMatrix() renderer.setSize(w, h) } window.addEventListener('resize', onResize) discuss order hn newest No comments yet.
No comments yet.