playground
playground copied to clipboard
Window Resize function doesn't adjust THREE.camera aspect
I've solved this by changing the resize function to:
` resize: function() {
/* update renderer size on window resize */
this.renderer.setSize(this.width, this.height);
if( ENGINE.Game.camera) {
ENGINE.Game.camera.aspect = this.width / this.height;
ENGINE.Game.camera.updateProjectionMatrix();
}
},`
-but this is more of a workaround.