17 sceVu0FVECTOR camera_position;
18 sceVu0FVECTOR position;
27 camera->
GetPos(camera_position);
40 for (i = 0; i < 59; i++) {
54 if (MGRotTransPers3DSprite(top_left, bottom_right, position,
sizes[i],
sizes[i] / 2.0f, 0) != 1) {
58 top_right[0] = bottom_right[0];
59 top_right[1] = top_left[1];
60 top_right[2] = top_left[2];
61 top_right[3] = top_left[3];
62 bottom_left[0] = top_left[0];
63 bottom_left[1] = bottom_right[1];
64 bottom_left[2] = bottom_right[2];
65 bottom_left[3] = bottom_right[3];
74 set3DSprite(Vif1Packet, TexManager.GetTexture(
"beem", -1), rect, top_left, top_right, bottom_left, bottom_right, (u_char)
alphas[i]);
88 sceVu0FVECTOR direction;
89 sceVu0FVECTOR position;
93 int near_bottom_right[4];
100 direction[0] -= source[0];
101 direction[1] -= source[1];
102 direction[2] -= source[2];
103 sceVu0Normalize(direction, direction);
104 direction[0] *= 15.0f;
105 direction[1] *= 15.0f;
106 direction[2] *= 15.0f;
113 MGSetGsALPHA(&alpha);
129 if (MGRotTransPers3DSprite(top_left, bottom_right, position,
sizes[59],
sizes[59] / 2.0f, 0) == 1) {
132 top_right[0] = bottom_right[0];
133 top_right[1] = top_left[1];
134 top_right[2] = top_left[2];
135 top_right[3] = top_left[3];
136 bottom_left[0] = top_left[0];
137 bottom_left[1] = bottom_right[1];
138 bottom_left[2] = bottom_right[2];
139 bottom_left[3] = bottom_right[3];
141 position[0] += direction[0];
142 position[1] += direction[1];
143 position[2] += direction[2];
145 if (MGRotTransPers3DSprite(near_top_left, near_bottom_right, position,
sizes[59],
sizes[59] / 2.0f, 0) == 1) {
146 bottom_right[2] = near_top_left[2];
147 bottom_left[2] = near_top_left[2];
148 top_left[2] = near_top_left[2];
149 top_right[2] = near_top_left[2];
156 set3DSprite(Vif1Packet, TexManager.GetTexture(
"beem", -1), rect, top_left, top_right, bottom_left, bottom_right, (u_char)
alphas[59]);