Skip to content

Commit 169eb9e

Browse files
committed
Updte threejs version
1 parent d536cd8 commit 169eb9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "threejs-stereoscopiceffects",
3-
"version": "1.0.0",
3+
"version": "1.0.159",
44
"description": "StereoscopicEffects for three.js",
55
"main": "src/StereoscopicEffects.js",
66
"scripts": {
@@ -17,6 +17,6 @@
1717
},
1818
"homepage": "https://github.com/JackDesBwa/threejs-StereoscopicEffects#readme",
1919
"dependencies": {
20-
"three": "^0.130.1"
20+
"three": "^0.159.0"
2121
}
2222
}

src/StereoscopicEffects.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Mesh,
55
NearestFilter,
66
OrthographicCamera,
7-
PlaneBufferGeometry,
7+
PlaneGeometry,
88
RGBAFormat,
99
Scene,
1010
ShaderMaterial,
@@ -101,7 +101,7 @@ export const InterleavedStereoEffect = function (renderer, strenderer, dir) {
101101
].join("\n")
102102
});
103103

104-
const _mesh = new Mesh(new PlaneBufferGeometry(2, 2), _material);
104+
const _mesh = new Mesh(new PlaneGeometry(2, 2), _material);
105105
const _scene = new Scene();
106106
_scene.add(_mesh);
107107

@@ -166,7 +166,7 @@ export const MirroredStereoEffect = function (renderer, strenderer, dir) {
166166
].join("\n")
167167
});
168168

169-
const _mesh = new Mesh(new PlaneBufferGeometry(2, 2), _material);
169+
const _mesh = new Mesh(new PlaneGeometry(2, 2), _material);
170170
const _scene = new Scene();
171171
_scene.add(_mesh);
172172

@@ -306,7 +306,7 @@ export const AnaglyphStereoEffect = function (renderer, strenderer, method) {
306306
_anaglyphGray_gm, _anaglyphHalfColors_gm, _anaglyphFullColors_gm, _anaglyphDubois_gm
307307
];
308308

309-
const _mesh = new Mesh(new PlaneBufferGeometry(2, 2), _material);
309+
const _mesh = new Mesh(new PlaneGeometry(2, 2), _material);
310310
const _scene = new Scene();
311311
_scene.add(_mesh);
312312

0 commit comments

Comments
 (0)