mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-20 23:19:19 +00:00
VideoSW: reuse Common::Vec2/3/4
This commit is contained in:
parent
e6ed939952
commit
fa4127b145
8 changed files with 48 additions and 137 deletions
|
@ -392,11 +392,12 @@ static void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertex
|
|||
|
||||
for (unsigned int i = 0; i < bpmem.genMode.numtexgens; i++)
|
||||
{
|
||||
for (int comp = 0; comp < 3; comp++)
|
||||
{
|
||||
TexSlopes[i][comp] = Slope(v0->texCoords[i][comp] * w[0], v1->texCoords[i][comp] * w[1],
|
||||
v2->texCoords[i][comp] * w[2], ctx);
|
||||
}
|
||||
TexSlopes[i][0] =
|
||||
Slope(v0->texCoords[i].x * w[0], v1->texCoords[i].x * w[1], v2->texCoords[i].x * w[2], ctx);
|
||||
TexSlopes[i][1] =
|
||||
Slope(v0->texCoords[i].y * w[0], v1->texCoords[i].y * w[1], v2->texCoords[i].y * w[2], ctx);
|
||||
TexSlopes[i][2] =
|
||||
Slope(v0->texCoords[i].z * w[0], v1->texCoords[i].z * w[1], v2->texCoords[i].z * w[2], ctx);
|
||||
}
|
||||
|
||||
// Half-edge constants
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue