当前位置:网站首页>Unity3d ugui translucent or linear gradient pictures display abnormally (blurred) problem solving (color space mismatch)

Unity3d ugui translucent or linear gradient pictures display abnormally (blurred) problem solving (color space mismatch)

2022-06-12 02:46:00 Shi Yao Bu Ru

problem

A question like this , I haven't met before , Transparent gradient pictures are normal for preview and viewing on various software , But put in UGUI There is a vague problem in .
stay Inspector On ( normal ):

 Insert picture description here

Put it in UGUI Next :
 Insert picture description here

All settings are default :
 Insert picture description here

resolvent

It took more than half a day to find the problem Color space (Color Space)
Here are two easiest ways to program , Quack .
 Insert picture description here

It is amended as follows Gamma

Because my project is a rendering project , He changed the color space to Linear, It is amended as follows Gamma The problem of blurring the rear picture is solved :
 Insert picture description here

But the scene rendering effect may be discounted , This needs to be coordinated by yourself .

Design tool color space

To be in PS Use linear space to make , because PS The default is to use Gamma Spatial , Into a linear space , stay Unity The interior is made in a unified space , There is no need to convert . The setting reference is as follows :
 Insert picture description here

Other

Referring to the master's method :https://zhuanlan.zhihu.com/p/348382979
Includes other high-end methods .

原网站

版权声明
本文为[Shi Yao Bu Ru]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011127363069.html