use namespace flare; use namespace flare.transforms; use namespace flare.filters; param TIME time; param COS_TIME ctime; float effect(float2 p) { // moving by cos time. p*= 2 * ctime.y; // return the length from center. return sin(length(p)*(50+ctime.x*50)); } technique main { param float2 resolution = float2(600, 600); // get the vertex position. float4 pos = transform(); // interpolate the position to the fragment. interpolated float4 iProj = pos; // move position. float2 pos2 = iProj.xy * ctime.yz; output vertex = pos; // change color. output fragment = float4( effect(pos2).x, ctime.z*2, ctime.y*4, 1); }