mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
Some video SW clean up and bug fixes. Did a hacky fix for bad light data. Add fog rendering. Add some offsets to make rasterized pixel locations and texture coordinates more accurate.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5361 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bfe6e92c15
commit
c2ac9be9b2
14 changed files with 179 additions and 78 deletions
|
@ -35,9 +35,8 @@ namespace Rasterizer
|
|||
float dfdx;
|
||||
float dfdy;
|
||||
float f0;
|
||||
float x0;
|
||||
float y0;
|
||||
float GetValue(s32 x, s32 y) { return f0 + (dfdx * (x - x0)) + (dfdy * (y - y0)); }
|
||||
|
||||
float GetValue(float dx, float dy) { return f0 + (dfdx * dx) + (dfdy * dy); }
|
||||
};
|
||||
|
||||
struct RasterBlockPixel
|
||||
|
@ -57,4 +56,4 @@ namespace Rasterizer
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue