Fixed error in the "wave" effect of the shader sample
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1270 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
c3f18addd6
commit
9c8843e85c
@ -4,7 +4,7 @@ uniform vec2 offset;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec2 texoffset = texture2D(wave, (gl_TexCoord[0].xy * offset).xy);
|
vec2 texoffset = vec2(texture2D(wave, (gl_TexCoord[0].xy * offset).xy));
|
||||||
texoffset -= vec2(0.5, 0.5);
|
texoffset -= vec2(0.5, 0.5);
|
||||||
texoffset *= 0.05;
|
texoffset *= 0.05;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user