Fix shader compilation error.

This commit is contained in:
Unknown W. Brackets 2013-04-02 07:26:36 -07:00
parent 3cec5f1fb4
commit 44b22bc6ff

View File

@ -301,7 +301,7 @@ void GenerateVertexShader(int prim, char *buffer) {
if (hasColor) {
WRITE(p, " lowp vec3 unlitColor = a_color0.rgb;\n");
} else {
WRITE(p, " lowp vec3 unlitColor = u_matambientalpha;\n");
WRITE(p, " lowp vec3 unlitColor = vec3(u_matambientalpha);\n");
}
// TODO: Declare variables for dots for shade mapping if needed.