LightingShader: Drop xfmem usage.

Our shaders must only depend on the UID, not on any global state.
This commit is contained in:
degasus
2016-09-28 23:31:10 +02:00
parent 829fc8f0ad
commit 083be0832f
5 changed files with 10 additions and 8 deletions

View File

@ -250,7 +250,8 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da
out.Write("o.colors_0 = float4(1.0, 1.0, 1.0, 1.0);\n");
}
GenerateLightingShaderCode(out, uid_data->lighting, uid_data->components, "color", "o.colors_");
GenerateLightingShaderCode(out, uid_data->lighting, uid_data->components, uid_data->numColorChans,
"color", "o.colors_");
if (uid_data->numColorChans < 2)
{