// MeteorShower.vtx // Author - MrC // Based on MeteorShower.r4 by Gordon Williams Texture trail; Texture sky; float[] pvel(256),ppos(256),ptheta(256),prad(256),plen(256),psnd(256); int x; float f,g,bt; const int cnt = 256; float time; void Init() { sky.LoadTexture("skybox.dds"); trail.LoadTexture("trail2.dds"); for (x=0;x1.0) newpt(x); gfxColour(1,1,1,(1.0-Cos(ppos[x]*3.14159*2.0))*0.5); drawit(ptheta[x],(ppos[x]*16.0)+plen[x],ptheta[x]+0.08+(prad[x]*0.025),(ppos[x]*16.0),prad[x]); } gfxEnd(); }