mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
ShaderGen: Store material uniforms as integers.
This commit is contained in:
parent
4bf57565e8
commit
78623871f9
6 changed files with 20 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue