niform sampler2D baseMap;
uniform float time;
varying vec2 rm_Texcoord;
const float speed = 2.0;
const float bendFactor = 0.2;
void main( void )
{
float height = 1.0 - rm_Texcoord.y;
float offset = pow(height, 2.5);
offset *=(sin(time * speed) * bendFactor);
vec3 normalColor = texture2D( baseMap, fract(vec2(rm_Texcoord.x + offset, rm_Texcoord.y) ) ).rgb;
gl_FragColor = vec4(normalColor,1.0); //texture2D( baseMap, rm_Texcoord );
}
uniform float time;
varying vec2 rm_Texcoord;
const float speed = 2.0;
const float bendFactor = 0.2;
void main( void )
{
float height = 1.0 - rm_Texcoord.y;
float offset = pow(height, 2.5);
offset *=(sin(time * speed) * bendFactor);
vec3 normalColor = texture2D( baseMap, fract(vec2(rm_Texcoord.x + offset, rm_Texcoord.y) ) ).rgb;
gl_FragColor = vec4(normalColor,1.0); //texture2D( baseMap, rm_Texcoord );
}