Skip to content

GLSL Shaders on OpenSeadragon zoomable tiles or any other image viaWebGL

License

Notifications You must be signed in to change notification settings

thejohnhoffer/viaWebGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GLSL Shaders on OpenSeadragon zoomable tiles or any other image viaWebGL

Resources

License

Stars

Watchers

Forks

Packages

No packages published