ShaderGen: Store light color uniforms as integers.

This commit is contained in:
Tony Wasserka
2013-10-27 13:57:40 +01:00
parent 68e91f0d55
commit 4bf57565e8
8 changed files with 65 additions and 54 deletions

View File

@ -22,7 +22,8 @@ struct PixelShaderConstants
float4 fog[2];
// For pixel lighting
float4 plights[40];
int4 plight_colors[8];
float4 plights[32];
float4 pmaterials[4];
};
@ -31,7 +32,8 @@ struct VertexShaderConstants
float4 posnormalmatrix[6];
float4 projection[4];
float4 materials[4];
float4 lights[40];
int4 light_colors[8]; // 8 lights
float4 lights[32]; // 8 lights * 4 parameters
float4 texmatrices[24];
float4 transformmatrices[64];
float4 normalmatrices[32];