GPU: Minor lighting cleanup in software transform.

In this case, unlitColor is already materialAmbient.
This commit is contained in:
Unknown W. Brackets 2020-05-08 23:05:17 -07:00
parent ef43ec5f33
commit ba566ef26a

View File

@ -324,12 +324,8 @@ void SoftwareTransform::Decode(int prim, u32 vertType, const DecVtxFormat &decVt
}
}
} else {
if (reader.hasColor0()) {
for (int j = 0; j < 4; j++) {
c0[j] = unlitColor[j];
}
} else {
c0 = Vec4f::FromRGBA(gstate.getMaterialAmbientRGBA());
for (int j = 0; j < 4; j++) {
c0[j] = unlitColor[j];
}
if (lmode) {
// c1 is already 0.