3 // Based on FadeFlipBoth.r4 by Gordon Williams
12 void Rect(float x0, float y0, float x1, float y1)
14 gfxBegin(PRIM_QUADLIST);
17 gfxVertex(x0, y0, 0.0);
19 gfxVertex(x1, y0, 0.0);
21 gfxVertex(x1, y1, 0.0);
23 gfxVertex(x0, y1, 0.0);
30 myTime = myTime + (TIMEPASS/1.5);
32 FINISHED = myTime>=1.0;
35 gfxTranslate(0, 0, 2.414);
37 d = 0.0-Cos(myTime*3.14159);
39 gfxSetTexture(TEXTURE_CURRPRESET);
40 gfxSetBlendMode(BLEND_ADD);
41 gfxColour(1, 1, 1, 0.25);
43 Rect(-1.0, -1.0, 0.0 - d, 1.0);
44 Rect(d, -1.0, 1.0, 1.0);
45 Rect(-1.0, -1.0, 1.0, 0 - d);
46 Rect(-1.0, d, 1.0, 1.0);
48 gfxSetTexture(TEXTURE_NEXTPRESET);
49 Rect(0.0 - d, -1.0, 1.0, 1.0);
50 Rect(-1.0, -1.0, d, 1.0);
51 Rect(-1.0, 0.0 - d, 1.0, 1.0);
52 Rect(-1.0, -1.0, 1.0, d);