Shader fixes for Delta Touch.
This commit is contained in:
parent
fd5b31b2b2
commit
df55aa4cc7
8 changed files with 40 additions and 40 deletions
|
|
@ -1,17 +1,17 @@
|
|||
vec4 ProcessLight( vec4 color )
|
||||
{
|
||||
return vec4(1.0);
|
||||
return vec4(1.);
|
||||
}
|
||||
|
||||
vec4 ProcessTexel()
|
||||
{
|
||||
vec2 coord = vTexCoord.st;
|
||||
vec2 dist = 2.0*texture(warptex,vTexCoord.st).xy-1.0;
|
||||
dist.y *= abs(mod(dist.x+timer*3.34536,4)-2)-1;
|
||||
coord.y += dist.y*0.12;
|
||||
dist = 2.0*texture(warptex,vTexCoord.st*2.0).xy-1.0;
|
||||
dist.y *= abs(mod(dist.x+timer*5.45363,4)-2)-1;
|
||||
coord.y -= dist.y*0.09;
|
||||
coord.y = clamp(coord.y,0.0,1.0);
|
||||
vec2 dist = 2.*texture(warptex,vTexCoord.st).xy-1.;
|
||||
dist.y *= abs(mod(dist.x+timer*3.34536,4.)-2.)-1.;
|
||||
coord.y += dist.y*.12;
|
||||
dist = 2.*texture(warptex,vTexCoord.st*2.0).xy-1.;
|
||||
dist.y *= abs(mod(dist.x+timer*5.45363,4.)-2.)-1.;
|
||||
coord.y -= dist.y*.09;
|
||||
coord.y = clamp(coord.y,0.,1.);
|
||||
return getTexel(coord);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue