ShaderGen: Toggle value of uninitialized color.

SMS seems to need 0, no regressions either.
This commit is contained in:
degasus
2015-12-05 16:10:15 +01:00
parent 7134d727bf
commit 7b34319e53
2 changed files with 6 additions and 6 deletions

View File

@ -178,7 +178,7 @@ static inline T GenerateVertexShader(API_TYPE api_type)
if (components & VB_HAS_COL0)
out.Write("o.colors_0 = color0;\n");
else
out.Write("o.colors_0 = float4(1.0, 1.0, 1.0, 1.0);\n");
out.Write("o.colors_0 = float4(0.0, 0.0, 0.0, 0.0);\n");
}
GenerateLightingShader<T>(out, uid_data->lighting, components, "color", "o.colors_");