1.0.0 • Published 8 years ago

glsl-sharpen v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

glsl-sharpen

Sharpens pixels of a frame using the surrounding pixels. Function takes it a texture, a coordinate and the render size, and returns the pixel value for that coordinate after applying the sharpening convolution.

Adapted from https://igortrindade.wordpress.com/2010/04/23/fun-with-opengl-and-shaders/

sharpen(sampler2D inputTexture, vec2 coord, vec2 imageSize) => vec4

License

MIT. See LICENSE.md for details.