Fix alpha blending for HW transform

This commit is contained in:
raven02 2013-01-10 22:19:06 +08:00
parent b6d7127734
commit 79c9c29251

View File

@ -338,7 +338,7 @@ void GenerateVertexShader(int prim, char *buffer) {
if (hasColor) {
WRITE(p, " v_color0 = a_color0;\n");
} else {
WRITE(p, " v_color0 = u_matambientalpha;\n");
WRITE(p, " v_color0 += vec4(u_matambientalpha.rgb, 0.0);\n");
}
if (lmode)
WRITE(p, " v_color1 = vec3(0.0, 0.0, 0.0);\n");