init commit, with sample code
This commit is contained in:
11
SFML/examples/shader/resources/billboard.frag
Normal file
11
SFML/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);
|
||||
}
|
||||
Reference in New Issue
Block a user