1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

cellGem: disable tracking in cellGemForceRGB

This commit is contained in:
Megamouse 2021-07-29 22:59:41 +02:00
parent 0c68a6afdd
commit 3b581aaf94

View File

@ -580,7 +580,14 @@ error_code cellGemForceRGB(u32 gem_num, float r, float g, float b)
return CELL_GEM_ERROR_INVALID_PARAMETER;
}
// TODO: Adjust brightness
//if (const f32 sum = r + g + b; sum > 2.f)
//{
// color = color * (2.f / sum)
//}
gem.controllers[gem_num].sphere_rgb = gem_config::gem_color(r, g, b);
gem.controllers[gem_num].enabled_tracking = false;
return CELL_OK;
}