4 ms·
do you mean like this? const onResize = () => { const { innerWidth: w, innerHeight: h } = window camera.aspect = w / h camera.updateProjectionMat
by jaeh 4y 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)