playground icon indicating copy to clipboard operation
playground copied to clipboard

Window Resize function doesn't adjust THREE.camera aspect

Open jpryne opened this issue 7 years ago • 0 comments

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.

jpryne avatar May 24 '17 00:05 jpryne