-
Notifications
You must be signed in to change notification settings - Fork 5
Home
John Hoffer edited this page Sep 9, 2016
·
36 revisions
- viaWebGL: A standalone kit lets you quickly run GLSL shaders on an Image or Canvas.
- openSeadragonGL: With openSeadragon and viaWebGL, this plugin lets you run GLSL shaders on many kinds of big zoomable images.
-
viaWebGL returns each input as a
WebGLRenderingContext.canvas
- Then openSeadragonGL sends the rendered tile to be drawn
- On the
'tile-drawing'
event ofOpenSeadragon.Viewer
CanvasRenderingContext2D.drawImage(WebGLRenderingContext.canvas)
- (Sets the WebGL context's canvas directly to the visible tile's 2D canvas)
- On the
'tile-loaded'
event ofOpenSeadragon.Viewer
HTMLImageElement.src = WebGLRenderingContext.canvas.toDataURL()
- (Sets the WebGL context's canvas to a string as an image source)
- On the
Read the guide to openSeaDragonGL
Get all the code — See the source