28 v1x = v1y = v1z = 0.0f;
29 v2x = v2y = v2z = 0.0f;
30 v3x = v3y = v3z = 0.0f;
33 u32 w0 = gfx->words.w0;
34 u32 w1 = gfx->words.w1;
45 vtxCount = (w0 >> 0xC) & 0xFF;
46 vtxArray = (Vtx_t*) w1;
47 for (i = 0; i < vtxCount; i++) {
48 vtxEnd = (w0 >> 1) & 0x7F;
49 N(TriNormVertexBuffer)[(vtxEnd - vtxCount) + i] = &(vtxArray)[i];
53 v1x = N(TriNormVertexBuffer)[((w1 >> 16) & 0xFF) / 2]->ob[0];
54 v1y = N(TriNormVertexBuffer)[((w1 >> 16) & 0xFF) / 2]->ob[1];
55 v1z = N(TriNormVertexBuffer)[((w1 >> 16) & 0xFF) / 2]->ob[2];
56 v2x = N(TriNormVertexBuffer)[((w1 >> 8) & 0xFF) / 2]->ob[0];
57 v2y = N(TriNormVertexBuffer)[((w1 >> 8) & 0xFF) / 2]->ob[1];
58 v2z = N(TriNormVertexBuffer)[((w1 >> 8) & 0xFF) / 2]->ob[2];
59 v3x = N(TriNormVertexBuffer)[(w1 & 0xFF) / 2]->ob[0];
60 v3y = N(TriNormVertexBuffer)[(w1 & 0xFF) / 2]->ob[1];
61 v3z = N(TriNormVertexBuffer)[(w1 & 0xFF) / 2]->ob[2];
65 v1x = N(TriNormVertexBuffer)[((w0 >> 16) & 0xFF) / 2]->ob[0];
66 v1y = N(TriNormVertexBuffer)[((w0 >> 16) & 0xFF) / 2]->ob[1];
67 v1z = N(TriNormVertexBuffer)[((w0 >> 16) & 0xFF) / 2]->ob[2];
68 v2x = N(TriNormVertexBuffer)[((w0 >> 8) & 0xFF) / 2]->ob[0];
69 v2y = N(TriNormVertexBuffer)[((w0 >> 8) & 0xFF) / 2]->ob[1];
70 v2z = N(TriNormVertexBuffer)[((w0 >> 8) & 0xFF) / 2]->ob[2];
71 v3x = N(TriNormVertexBuffer)[(w0 & 0xFF) / 2]->ob[0];
72 v3y = N(TriNormVertexBuffer)[(w0 & 0xFF) / 2]->ob[1];
73 v3z = N(TriNormVertexBuffer)[(w0 & 0xFF) / 2]->ob[2];
93 nx = (d12y * d32z) - (d12z * d32y);
94 ny = (d12z * d32x) - (d12x * d32z);
95 nz = (d12x * d32y) - (d12y * d32x);