mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02: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:
@ -62,7 +62,7 @@ namespace Clipper
|
||||
float m_ViewOffset[3];
|
||||
OutputVertexData ClippedVertices[18];
|
||||
OutputVertexData *Vertices[21];
|
||||
|
||||
|
||||
void Init()
|
||||
{
|
||||
for (int i = 0; i < 18; ++i)
|
||||
@ -339,6 +339,9 @@ namespace Clipper
|
||||
Vertices[0] = lineV0;
|
||||
Vertices[1] = lineV1;
|
||||
|
||||
// point to a valid vertex to store to when clipping
|
||||
Vertices[2] = &ClippedVertices[17];
|
||||
|
||||
ClipLine(indices);
|
||||
|
||||
if(indices[0] != SKIP_FLAG)
|
||||
@ -437,4 +440,4 @@ namespace Clipper
|
||||
screen.z = projected.z * wInverse + m_ViewOffset[2];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user