本页面列出了从早期版本的 Unity 升级到 2017.3 版时可能对现有项目造成影响的更改。
例如:
数据格式的变化可能导致需要重新烘焙。
任何现有函数、参数或组件值的含义或行为的变化。
任何函数或功能的弃用。(建议的替代方案。)
Enlighten 中的光照贴图强度和发光材质
2017.2 版中引入的一个错误增加了使用具有发光材质的静态网格对象为场景生成光照贴图的强度。烘焙和实时发光材质都有该问题。现在已经在 2017.3 版中修复了这一问题,因此现在的强度与 2017.1 版相似。
此更改会影响所有在 2017.2 中构建后升级到 2017.3 或更高版本的项目。
PassType.VertexLMRGBM 已弃用
在 Unity 2017.3 中,着色器通道 VertexLMRGB 会被忽略。例如:
Tags { "LightMode" = "VertexLMRGBM" }
现在,应使用支持所有光照贴图编码类型的 DecodeLightmap 着色器函数来提供或更新 VertexLM 着色器通道。内置的移动端着色器现在也使用 DecodeLightmap 着色器函数。
在桌面平台上使用内置移动着色器(如 Mobile 或 VertexLit)的现有项目中,光照输出可能会发生变化。这是因为 RGBM 编码值的最大范围已从 [0, 8] 更改为 [0, 5]。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.