private void SetMaxDisplayBrightness(float brightness)
{
brightness = Mathf.Clamp(brightness, 1f, this.m_HDRConfig.maxBrightness);
if (brightness != this.m_HDRValues.m_HDRScaleFactor)
{
Color c = color.RGBMultiplied((float) (1f / brightness));
if (c.maxColorComponent <= 1f)
{
this.SetNormalizedColor(c);
this.SetHDRScaleFactor(brightness);
base.Repaint();
}
}
}