Skip to content

Window Resize function doesn't adjust THREE.camera aspect #53

@jpryne

Description

@jpryne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions