Here's the shader in question:
Code: Select all
extern number time;
extern number strength;
extern vec2 screen;
vec4 effect(vec4 color, Image tex, vec2 tc, vec2 sc)
{
tc.y = tc.y + sin( (tc.x * 30.0) + (time * 10.0) ) * (screen.y * 0.0005) * strength;
return Texel(tex, tc) * color;
}
Here's how it's supposed to look:
Here's how it looks on android:
I've attached a .love. The shaders are applied after you run into the cactus that's totally not a reference to a drug.
The shader code is in main.lua, Anything else related to the shader is in game.lua.