And added a method to update state, but the size of the canvas never changes. I've tried adding a call to forceUpdate but it also has no effect. Canvas, scene, camera, and renderer are always the same size as when the page was first loaded. Scaling the browser window has no effect.
I have stepped through the code to ensure that the state change is being executed.
I'm not sure how to make the renderer, scene, and camera resize with the window. I've used state to set the properties for each element:
And added a method to update state, but the size of the canvas never changes. I've tried adding a call to
forceUpdate
but it also has no effect. Canvas, scene, camera, and renderer are always the same size as when the page was first loaded. Scaling the browser window has no effect.I have stepped through the code to ensure that the state change is being executed.