softgpu : fix v_color0 to use MaterialAmbient

This commit is contained in:
raven02 committed 2013-08-17 22:05:50 +08:00
1 parent 47ac6c02fc
commit 8ff2a1bb35
1 file changed
+1 -1
+1 -1
View File
@@ -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()) {