diff options
author | Zack Rusin <[email protected]> | 2008-05-20 18:49:40 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-05-20 18:49:51 -0400 |
commit | cd87aeae00e17e49e258d4d0db6524d808ba7d3f (patch) | |
tree | 017ada57bb139d03278dfe76ecb81c0c682db77c /progs/glsl/convolution.vert | |
parent | 26f874e967e5bcbd0e0c73674df3d3900b98d35b (diff) |
add a simple but nice example of convolution filters in glsl
shows basics of image processing with glsl
Diffstat (limited to 'progs/glsl/convolution.vert')
-rw-r--r-- | progs/glsl/convolution.vert | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/glsl/convolution.vert b/progs/glsl/convolution.vert new file mode 100644 index 00000000000..752c54671c3 --- /dev/null +++ b/progs/glsl/convolution.vert @@ -0,0 +1,5 @@ +void main() { + gl_FrontColor = gl_Color; + gl_TexCoord[0] = gl_MultiTexCoord0; + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; +} |