PixelShaderGen: Use integer math for tev outputs.
PixelShaderGen: Use integer math for TEV combiners.
PixelShaderGen: Remove superfluous registerstate stuff. Also, made alphabump an integer.
PixelShaderGen: prev should be initialized to the proper value; tev output needs to be clamped between -1024 and 1023.
PixelShaderGen: Use integer math for indirect tev stage texcoord calculation.
PixelShaderGen: Write constants in decimal instead of hexadecimal where appropriate.
PixelShaderGen: Process fog calculations with integer math.
PixelShaderGen: Change the "colors" and "kcolors" uniforms to be integers.
PixelShaderGen: Change the "alpha" uniform to use integers.
PixelShaderGen: Change indirect texture matrix uniforms to use integers.
PixelShader: Store fog color as an integer.
ShaderGen: Store light color uniforms as integers.
ShaderGen: Store material uniforms as integers.
LightingShaderGen: Perform some lighting calculations with integers.
LightingShaderGen: Perform more lighting calculations with integers.
PixelShaderGen: Treat UV coordinates like S17.7 integers (they're still stored as float, though).
PixelShaderGen: Use integer math for z textures.
PixelShaderGen: Perform some of the fog calculations with integers.
PixelShaderGen: Remove some dead code.
PixelShaderGen: Treat UV coordinates as actual integers.