Skip to content

Commit

Permalink
Merge pull request #3 from PierreFritsch/patch-1
Browse files Browse the repository at this point in the history
Delete unused variables windowHalfX/Y
  • Loading branch information
Lorti committed Feb 7, 2018
2 parents 4a61ccb + 14af167 commit a0e495d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@
var camera, controls, scene, renderer;
var lighting, ambient, keyLight, fillLight, backLight;

var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;

init();
animate();

Expand Down Expand Up @@ -154,9 +151,6 @@

function onWindowResize() {

windowHalfX = window.innerWidth / 2;
windowHalfY = window.innerHeight / 2;

camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();

Expand Down

0 comments on commit a0e495d

Please sign in to comment.