Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Aug 27, 2019
1 parent ac10887 commit b0bb145
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ class VR extends Plugin {
mapMatrix: {value: mapMatrix},
contCorrect: {value: contCorrect},
faceWH: {value: new THREE.Vector2(1 / 3, 1 / 2).applyMatrix3(scaleMatrix)},
vidWH: {value: new THREE.Vector2(
this.videoTexture.image.videoWidth, this.videoTexture.image.videoHeight).applyMatrix3(scaleMatrix)}
vidWH: {value: new THREE.Vector2(this.videoTexture.image.videoWidth, this.videoTexture.image.videoHeight).applyMatrix3(scaleMatrix)}
},
vertexShader: `
varying vec2 vUv;
Expand Down Expand Up @@ -380,24 +379,20 @@ void main() {
0, 0, 1
);

makeScreen(
new THREE.Matrix3().set(
0, -0.5, 0.5,
1, 0, 0,
0, 0, 1
), scaleMatrix
);
makeScreen(new THREE.Matrix3().set(
0, -0.5, 0.5,
1, 0, 0,
0, 0, 1
), scaleMatrix);
// display in left eye only
this.movieScreen.layers.set(1);
this.scene.add(this.movieScreen);

makeScreen(
new THREE.Matrix3().set(
0, -0.5, 1,
1, 0, 0,
0, 0, 1
), scaleMatrix
);
makeScreen(new THREE.Matrix3().set(
0, -0.5, 1,
1, 0, 0,
0, 0, 1
), scaleMatrix);
// display in right eye only
this.movieScreen.layers.set(2);
this.scene.add(this.movieScreen);
Expand Down

0 comments on commit b0bb145

Please sign in to comment.