mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
softgpu : fix v_color0 to use MaterialAmbient
This commit is contained in:
1 parent
47ac6c02fc
commit
8ff2a1bb35
1 file changed
+1
-1
@@ -143,7 +143,7 @@ static VertexData ReadVertex(VertexReader& vreader)
|
||||
vreader.ReadColor0(col);
|
||||
vertex.color0 = Vec4<int>(col[0]*255, col[1]*255, col[2]*255, col[3]*255);
|
||||
} else {
|
||||
vertex.color0 = Vec4<int>(gstate.materialdiffuse&0xFF, (gstate.materialdiffuse>>8)&0xFF, (gstate.materialdiffuse>>16)&0xFF, gstate.materialalpha&0xFF);
|
||||
vertex.color0 = Vec4<int>(gstate.getMaterialAmbientR(), gstate.getMaterialAmbientG(), gstate.getMaterialAmbientB(), gstate.getMaterialAmbientA());
|
||||
}
|
||||
|
||||
if (vreader.hasColor1()) {
|
||||
|
||||
Reference in new issue
Block a user