Get viaWebGL + openSeadragonGL stable release! — See how it works
OpenSeadragon shaders by openSeadragonGL
Featured as an OpenSeadragon Plugin!
- Live demo: Sobel filter on tiled image
openSD = OpenSeadragon({
tileSources: '../tiles.dzi',
prefixUrl: '../your/icons/',
id: 'viaWebGL'
});
seaGL = new openSeadragonGL(openSD);
seaGL.addHandler('tile-drawing');
seaGL.vShader = '../fileV.glsl';
seaGL.fShader = '../fileF.glsl';
seaGL.init();
##seaGL.addHandler(eventName, gl-handler)
Parameter | Type | About |
---|---|---|
eventName |
String | "gl-drawing" or "gl-loaded" |
gl-handler |
Function | Needed for custom access to the webGL API |
Image shaders by viaWebGL
- Live demo: Sobel filter on vector image
image = new Image();
viaGL = new ViaWebGL();
image.onload = function() {
viaGL.vShader = '../fileV.glsl';
viaGL.fShader = '../fileF.glsl';
viaGL.init(image);
}
image.src = '../file.type';