Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


lightsUseLinearIntensity

If this is true, Light intensity is multiplied against linear color values. If it is false, gamma color values are used.
Read time 1 minuteLast updated 10 days ago

Definition

public static bool lightsUseLinearIntensity { get; set; }

Remarks

Light intensity is multiplied by the linear color value when lightsUseLinearIntensity is enabled. This is physically correct but not the default for 3D projects created with Unity 5.6 and newer. By default GraphicsSettings.lightsUseLinearIntensity is set to false.
2D projects will have GraphicsSettings.lightsUseLinearIntensity set to disabled by default. When disabled, the gamma color value is multiplied with the intensity. If you want to use GraphicsSettings.lightsUseColorTemperature, GraphicsSettings.lightsUseLinearIntensity has to be enabled.
If you enable GraphicsSettings.lightsUseLinearIntensity on an existing project, all your Lights will need to be tweaked to regain their original look.