mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-29 02:40:15 +00:00
Pica/Rasterizer: Clarify a TODO.
This commit is contained in:
parent
697b50c3ff
commit
a79644c9ba
1 changed files with 3 additions and 1 deletions
|
@ -349,9 +349,11 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
|
||||||
combiner_output = Math::MakeVec(color_output, alpha_output);
|
combiner_output = Math::MakeVec(color_output, alpha_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Not sure if the multiplication by 65535 has already been taken care
|
||||||
|
// of when transforming to screen coordinates or not.
|
||||||
u16 z = (u16)(((float)v0.screenpos[2].ToFloat32() * w0 +
|
u16 z = (u16)(((float)v0.screenpos[2].ToFloat32() * w0 +
|
||||||
(float)v1.screenpos[2].ToFloat32() * w1 +
|
(float)v1.screenpos[2].ToFloat32() * w1 +
|
||||||
(float)v2.screenpos[2].ToFloat32() * w2) * 65535.f / wsum); // TODO: Shouldn't need to multiply by 65536?
|
(float)v2.screenpos[2].ToFloat32() * w2) * 65535.f / wsum);
|
||||||
SetDepth(x >> 4, y >> 4, z);
|
SetDepth(x >> 4, y >> 4, z);
|
||||||
|
|
||||||
DrawPixel(x >> 4, y >> 4, combiner_output);
|
DrawPixel(x >> 4, y >> 4, combiner_output);
|
||||||
|
|
Loading…
Reference in a new issue