Skip to content

Instantly share code, notes, and snippets.

@jacbouzada
jacbouzada / lens.glsl
Created June 7, 2016 09:49 — forked from tsulej/lens.glsl
GLSL Shader and Processing - 2D example
// shader example for Processing
// uniform - variables set in Processing sketch using shader.set()
// varying - variables set by Processing itself
// image to process
uniform sampler2D texture;
// mouse position normalized
uniform vec2 inp;
// vertex color