Added a geometry shader effect to the Shader example
This commit is contained in:
parent
1763861b26
commit
146f63874a
5 changed files with 152 additions and 0 deletions
11
examples/shader/resources/billboard.frag
Normal file
11
examples/shader/resources/billboard.frag
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue