Added support for vertex shaders in sf::Shader
Rewrote the Shader example
This commit is contained in:
parent
4d0a6a299a
commit
c9b87ec8a9
20 changed files with 893 additions and 486 deletions
9
examples/shader/resources/blink.frag
Normal file
9
examples/shader/resources/blink.frag
Normal file
|
@ -0,0 +1,9 @@
|
|||
uniform sampler2D texture;
|
||||
uniform float blink_alpha;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 pixel = gl_Color;
|
||||
pixel.a = blink_alpha;
|
||||
gl_FragColor = pixel;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue