                 float y = (sin(6.0 * num *(dis-time)) + 1.0)/2.0;
                            alpha = smoothstep(1.0,0.0,abs(y-0.5)/0.5) * (0.5 -dis) * 2.;
                        }else if(type ==1.0){
                                float step = fract(time* 4.)* 0.5;
                            if(dis<step){
                                    // alpha = smoothstep(1.0,0.0,abs(step-dis)/0.15);
                                alpha =1.- abs(step-dis)/0.15;
                            }else{
               