Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 1.96 KB

README.md

File metadata and controls

66 lines (50 loc) · 1.96 KB

Get viaWebGL + openSeadragonGL stable release!See how it works

Featured as an OpenSeadragon Plugin!

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

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';

About this project

Harvard VCG