13 sceVu0FVECTOR camera_position;
14 sceVu0FVECTOR direction;
15 sceVu0FVECTOR position;
24 camera->
GetPos(camera_position);
37 for (i = 0; i < 8; i++) {
46 direction[0] = camera_position[0] -
positions[i][0];
48 direction[2] = camera_position[2] -
positions[i][2];
49 sceVu0Normalize(direction, direction);
50 direction[0] *= 7.0f * i +
phases[i];
51 direction[2] *= 7.0f * i +
phases[i];
53 position[0] = direction[0] +
positions[i][0];
54 position[1] = direction[1] +
positions[i][1];
55 position[2] = direction[2] +
positions[i][2];
58 if (MGRotTransPers3DSprite(top_left, bottom_right, position,
sizes[i],
sizes[i] / 2.0f, 0) != 1) {
62 top_right[0] = bottom_right[0];
63 top_right[1] = top_left[1];
64 top_right[2] = top_left[2];
65 top_right[3] = top_left[3];
66 bottom_left[0] = top_left[0];
67 bottom_left[1] = bottom_right[1];
68 bottom_left[2] = bottom_right[2];
69 bottom_left[3] = bottom_right[3];
82 set3DSprite(Vif1Packet, TexManager.GetTexture(
"bakuha1", -1), rect, top_left, top_right, bottom_left, bottom_right,
static_cast<u8
>(
alphas[i]));
90 set3DSprite(Vif1Packet, TexManager.GetTexture(
"sunakemuri", -1), rect, top_left, top_right, bottom_left, bottom_right,
static_cast<u8
>(
alphas[i]));