Software: Store offset in Slope

This is needed since we need a separate offset for zfreeze to work correctly.  It also makes the code a bit less jank.
This commit is contained in:
Pokechu22
2021-11-30 22:33:31 -08:00
parent 3a742e99bb
commit 164e0f742d
2 changed files with 91 additions and 71 deletions

View File

@ -16,15 +16,6 @@ void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v
void SetTevReg(int reg, int comp, s16 color);
struct Slope
{
float dfdx;
float dfdy;
float f0;
float GetValue(float dx, float dy) const { return f0 + (dfdx * dx) + (dfdy * dy); }
};
struct RasterBlockPixel
{
float InvW;