Corrected bug

This commit is contained in:
Thomas FORGIONE 2015-07-07 10:45:30 +02:00
parent 8fac6f9f9d
commit dc4b4d4975
1 changed files with 2 additions and 2 deletions

View File

@ -221,8 +221,8 @@ function onWindowResize() {
container.style.height = container_size.height() + "px"; container.style.height = container_size.height() + "px";
renderer.setSize(container_size.width(), container_size.height()); renderer.setSize(container_size.width(), container_size.height());
cameras.forEach(function(camera) {camera.aspect = container_size.width() / container_size.height();}); cameras.forEach(function(camera) {camera.camera.aspect = container_size.width() / container_size.height();});
cameras.forEach(function(camera) {camera.updateProjectionMatrix();}); cameras.forEach(function(camera) {camera.camera.updateProjectionMatrix();});
render(); render();
} }