mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Make sure all examples resize when the window is resized (#155)
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
const renderer = new THREE.WebGLRenderer();
|
||||
renderer.shadowMap.enabled = true;
|
||||
renderer.setSize(window.innerWidth, window.innerHeight);
|
||||
document.body.appendChild(renderer.domElement)
|
||||
document.body.appendChild(renderer.domElement);
|
||||
|
||||
// Setup camera
|
||||
const camera = new THREE.PerspectiveCamera(65, window.innerWidth / window.innerHeight, 0.1, 1000);
|
||||
|
||||
Reference in New Issue
Block a user