3D scene need Linear but UI need Gamma

Having this problem?
https://forum.unity.com/threads/gamma-colors-for-ui-and-linear-for-scene.529923/

20190530_problem.jpg

Looking for a way to make only the UI matches to what is designed in Photoshop? Don’t want artists to change any workflow because you are in the middle of development? Try this.

 

Result:

20190530_fix.jpg

 

To solve it:

The approach is to do the gamma <-> linear conversion in an image effect shader. We let the UI contents to blend in Linear, and then convert the result back to Gamma again.

What you need to do is download the project below which contains the shader and scripts. Then mind these settings when you apply the tool to your project:

20190530_Linear3DGammaUI.jpg

Download:
https://drive.google.com/open?id=1m-Bi-nbsZWr4oh52Phmz0iTGz0WGH0sK

 

Drawback – There is no free lunch:
There might be small performance impact as this is a Graphics blit of full screen image effect.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s