阈值,用于限制实时 GI 的更新。测量单位是“强度变化百分比”。
描述在更新实时光照贴图前可更改的输入光照量。当更新输入光照时,Enlighten 会持续累积自解算上次照明以来输入光的强度差。每次更新都会增加当前差异,因此随着时间的推移,它是自上次解算以来的差异总和。每次更新时,Enlighten 都会检查光强度的累积总计与先前结果相比,是否超出 updateThreshold 值(以百分比表示)指定的差值。
较低的值表示实时光照贴图的更新将更频繁,但会导致更多 CPU 负载。较高的值将导致其更新频率更低,但会导致更小 CPU 负载。
值为 0 表示即使在输入光照发生最小变化时,实时光照贴图也会更新。如果输入光照不变,则值为 0 将不会导致对光照贴图的任何更新。正值会导致仅在超过阈值时更新全局光照。这有助于节约 CPU 周期,并且只更新光照更改更频繁的场景部分,而不更新光照主要为静态的其他区域。默认值为 1%。任何正值都可以,但我们建议使用较小的值,否则您可能看到跳动的瑕疵(和不正确的光能传递)。
如果您想节约更多 CPU 周期,那么您没有理由不能超过 100%。该百分比实际上是解算发生前的最大容错。
任何负值都会关闭时间相干性,因此即使照明没有改变,在每一帧也都会对系统进行解算。
请注意,更高强度值的解算频率低于更低强度值,这是有意义的,因为我们认为低强度光源中的差异比高强度光源中的差异更大。
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.