How do I enable Lights Use Linear Intensity and Lights Use Color Temperature?

My project originally started as a 2D project using the built in renderer, but over the years it has morphed into 3D and then started utilizing URP. I noticed that when starting a new project using the 3D URP template my directional lights have a Color Temperature option, but this option is not available in my main project that’s been updated to use URP.

How can an existing project enable Lights Use Linear Intensity and Lights Use Color Temperature settings?

I found this article but the information seems outdated, as there is currently no way to enable debugging for the Project Settings>Graphics tab:

I even tried setting these options to True via a script but noticed no difference.

The Unity Docs seem to suggest it’s possible to turn these options on, but I have no idea where: Unity - Scripting API: Rendering.GraphicsSettings.lightsUseLinearIntensity

Please help.

1 Like

You can get Kelvin to RGB through Mathf.CorrelatedColorTemperatureToRGB(value), is this what you want?

No I’d like to actually enable the Lights Use Linear Intensity and Lights Use Color Temperature settings. Here is an image of my scene in 2 different projects. On the left, the project was initialized with the 2D Built-In Renderer template and then was upgraded to use URP while the right was initialized with the 3D URP template. You can see that the lighting is behaving very differently in the 2 projects even though they are both displaying the same imported assets.

While I cannot be 100% sure at this time that those 2 settings are to blame, it’s the only thing I have to go on in terms of what could be different between these 2 projects.

Have you enabled tonemapping in the PP effects by any chance?

Also you can toggle temperature off from the light appearance dropdown.

I have a Global Volume in both projects with a Tonemapping property, but it is disabled in both projects as well.

Where can I find this light appearance drop down?

In your light settings under emission, it’s just above the light colour.

Ah yes, it is there in the 3D URP project, it can be seen in the screen shot above. But you can also see that the drop down is not available in the project on the left.

Really mainly interested in how to turn on Lights Use Linear Intensity and Lights Use Color Temperature without having to start a brand new project.

Could really need some insight from anyone knowledgeable about these settings, please

It needs to be enabled by script apparently as there’s no UI toggle for it.

So try…
GraphicsSettings.lightsUseLinearIntensity = true;
GraphicsSettings.lightsUseColorTemperature = true;

Have in mind that it could still be a little different as it’s a different renderer but give it a shot.

Go to Project Setting > Player > Other Settings > Rendering and change Color Space from Gamma to Linear

7 Likes

@Munkey have you found a solution? I have the very same problem and I cannot found a solution at all elsewhere

this solved it for me, thanks!

One additional note: The build platform selected for the project affects what settings are visible in the Project Settings. If you don’t see the Rendering section in Other Settings, then try going to File > Build Settings and checking the selected platform.

Example: If you have Dedicated Server selected selected as your targeted platform, you may not see the Rendering section in Player Settings > Other.

On the other hand, if your build platform is Windows, Mac, Linux, then the Rendering section should be available.