summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderManager.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2013-10-27 14:07:13 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-03-14 22:31:19 +0100
commit78623871f96deff1da5b164772095124af1a2047 (patch)
treef65ffc79896918dc4352c3049983c47ec7c03d50 /Source/Core/VideoCommon/PixelShaderManager.cpp
parent4bf57565e8ce462a5272c45490abaf3ddac21a00 (diff)
ShaderGen: Store material uniforms as integers.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp
index b9418b4afd..8999247f24 100644
--- a/Source/Core/VideoCommon/PixelShaderManager.cpp
+++ b/Source/Core/VideoCommon/PixelShaderManager.cpp
@@ -326,10 +326,10 @@ void PixelShaderManager::SetMaterialColorChanged(int index, u32 color)
{
if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)
{
- constants.pmaterials[index][0] = ((color >> 24) & 0xFF) / 255.0f;
- constants.pmaterials[index][1] = ((color >> 16) & 0xFF) / 255.0f;
- constants.pmaterials[index][2] = ((color >> 8) & 0xFF) / 255.0f;
- constants.pmaterials[index][3] = ( color & 0xFF) / 255.0f;
+ constants.pmaterials[index][0] = (color >> 24) & 0xFF;
+ constants.pmaterials[index][1] = (color >> 16) & 0xFF;
+ constants.pmaterials[index][2] = (color >> 8) & 0xFF;
+ constants.pmaterials[index][3] = (color) & 0xFF;
dirty = true;
}
}