Use 'fisheyegl' from npm

This commit is contained in:
Chinmay Pandhare
2017-07-29 04:08:28 +05:30
parent 3421714c2b
commit 61bd95355b
6 changed files with 617 additions and 850 deletions

View File

@@ -4,7 +4,8 @@
module.exports = function DoNothing(options) {
options = options || {};
options.title = "Fisheye GL";
var output
var output;
require('fisheyegl');
function draw(input,callback) {
this_ = this;
@@ -13,7 +14,6 @@ module.exports = function DoNothing(options) {
callback();
}
else {
if (!document.querySelector('#image-sequencer-canvas')) {
var canvas = document.createElement('canvas');
canvas.style.display = "none";
@@ -22,7 +22,7 @@ module.exports = function DoNothing(options) {
}
else var canvas = document.querySelector('#image-sequencer-canvas');
distorter = require('./fisheyegl.js')({
distorter = FisheyeGl({
selector: "#image-sequencer-canvas"
});