Skip to content

Commit

Permalink
Update three.js
Browse files Browse the repository at this point in the history
Fix #30
steren authored Feb 19, 2024

Verified

This commit was signed with the committer’s verified signature.
kkafar Kacper Kafara
1 parent 5b9dad4 commit 4751589
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
"homepage": "https://stereo-img.steren.fr/",
"dependencies": {
"exifr": "^7.1.3",
"three": "^0.134.0"
"three": "^0.161.0"
},
"module": "./stereo-img.js",
"exports": {
1 change: 1 addition & 0 deletions stereo-img.js
Original file line number Diff line number Diff line change
@@ -200,6 +200,7 @@ class StereoImg extends HTMLElement {

const texture = new THREE.Texture(imageData);
texture.needsUpdate = true;
texture.colorSpace = THREE.SRGBColorSpace;

let geometry;
// if angle is less than Pi / 2, use a plane, otherwise use a sphere

0 comments on commit 4751589

Please sign in to comment.