Added a geometry shader effect to the Shader example

This commit is contained in:
Mario Liebisch 2014-05-15 15:29:23 +02:00 committed by Lukas Dürrenberger
parent 1763861b26
commit 146f63874a
5 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#version 150
uniform sampler2D texture;
in vec2 tex_coord;
void main()
{
// Read and apply a color from the texture
gl_FragColor = texture2D(texture, tex_coord);
}