Corrected bug
This commit is contained in:
parent
8fac6f9f9d
commit
dc4b4d4975
|
@ -221,8 +221,8 @@ function onWindowResize() {
|
|||
container.style.height = container_size.height() + "px";
|
||||
|
||||
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.updateProjectionMatrix();});
|
||||
cameras.forEach(function(camera) {camera.camera.aspect = container_size.width() / container_size.height();});
|
||||
cameras.forEach(function(camera) {camera.camera.updateProjectionMatrix();});
|
||||
render();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue