ShaderGen: Store material uniforms as integers.

This commit is contained in:
Tony Wasserka
2013-10-27 14:07:13 +01:00
parent 4bf57565e8
commit 78623871f9
6 changed files with 20 additions and 20 deletions

View File

@ -24,14 +24,14 @@ struct PixelShaderConstants
// For pixel lighting
int4 plight_colors[8];
float4 plights[32];
float4 pmaterials[4];
int4 pmaterials[4];
};
struct VertexShaderConstants
{
float4 posnormalmatrix[6];
float4 projection[4];
float4 materials[4];
int4 materials[4];
int4 light_colors[8]; // 8 lights
float4 lights[32]; // 8 lights * 4 parameters
float4 texmatrices[24];