stinger_m/shaders/glsl/ShockCore.fp
Marisa Kirisame 01249eb43f Oh boy, here comes another big one.
Notable changes since last commit are the full implementation of the automag and asmd.
Also the Translator is now fully functional.
Fonts have been restructured to a neater format.
There have also been other random changes I don't have the time to document in detail.
2019-08-31 03:14:20 +02:00

19 lines
476 B
GLSL

vec3 bolt( in vec2 uv, in float speed, in float freq )
{
vec3 col = vec3(0.0);
for ( float i=0.0; i<0.05; i+=0.01 )
{
vec2 nuv = uv;
nuv.x += 1.2*(0.5-texture(warptex,vec2((timer-i)*speed,nuv.y*freq)).x)*max(0.0,pow(0.5-abs(0.5-uv.y),0.5)-0.2);
col += 0.2*getTexel(nuv).rgb;
}
return col;
}
vec4 ProcessTexel()
{
vec3 col = bolt(vTexCoord.st,1.53534,0.51);
col += bolt(vTexCoord.st,1.64563,0.62);
col += bolt(vTexCoord.st,1.73425,0.73);
return vec4(col,1.);
}