When sorting translucent triangle, keep the third vertex in place.
In flat shading mode, the third vertex of a triangle defines its color so we must maintain its index. Fixes the remaining color polygons seen in Evolution - The World of Sacred Device.
This commit is contained in:
parent
0df91770d2
commit
e067534f26
|
@ -522,9 +522,9 @@ void GenSorted(int first, int count)
|
||||||
|
|
||||||
if (flip)
|
if (flip)
|
||||||
{
|
{
|
||||||
v0=&vtx[2];
|
v0=&vtx[1];
|
||||||
v1=&vtx[1];
|
v1=&vtx[0];
|
||||||
v2=&vtx[0];
|
v2=&vtx[2];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue