mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-20 14:11:42 +00:00
GPU: Minor lighting cleanup in software transform.
In this case, unlitColor is already materialAmbient.
This commit is contained in:
parent
ef43ec5f33
commit
ba566ef26a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user