Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #63 from pchen66/dev
Browse files Browse the repository at this point in the history
r4
  • Loading branch information
pchen66 committed Feb 21, 2017
2 parents a581ffb + f0219c7 commit 4bf0119
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 57 deletions.
116 changes: 68 additions & 48 deletions build/panolens.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions build/panolens.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "panolens.js",
"version": "0.0.3",
"version": "0.0.4",
"description": "Javascript panorama viewer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"gulp-jsdoc3": "^1.0.0",
"gulp-strip-debug": "^1.1.0",
"gulp-uglify": "^1.5.2",
"three": "^0.78.0",
"three": "^0.84.0",
"tween.js": "^16.3.5",
"iphone-inline-video": "^1.9.3"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Panolens.js
Expand Up @@ -4,4 +4,4 @@
* @namespace PANOLENS
*/

var PANOLENS = { REVISION: '3' };
var PANOLENS = { REVISION: '4' };
2 changes: 2 additions & 0 deletions src/lib/effects/CardboardEffect.js
Expand Up @@ -28,6 +28,8 @@ THREE.CardboardEffect = function ( renderer ) {
var uvs = geometry.attributes.uv.array;

// duplicate
geometry.attributes.position.count *= 2;
geometry.attributes.uv.count *= 2;

var positions2 = new Float32Array( positions.length * 2 );
positions2.set( positions );
Expand Down

0 comments on commit 4bf0119

Please sign in to comment.