用于控制混合的混合模式。
混合模式是为源和目标分别设置的,它控制进入混合等式的各组件的混合因子。还可以为颜色和 Alpha 组件分别设置混合模式。注意:如果使用逻辑混合运算或高级 OpenGL 混合运算,将忽略混合模式。
Zero | 混合因子为 (0, 0, 0, 0)。 |
One | 混合因子为 (1, 1, 1, 1)。 |
DstColor | 混合因子为 (Rd, Gd, Bd, Ad)。 |
SrcColor | 混合因子为 (Rs, Gs, Bs, As)。 |
OneMinusDstColor | 混合因子为 (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad)。 |
SrcAlpha | 混合因子为 (As, As, As, As)。 |
OneMinusSrcColor | 混合因子为 (1 - Rs, 1 - Gs, 1 - Bs, 1 - As)。 |
DstAlpha | 混合因子为 (Ad, Ad, Ad, Ad)。 |
OneMinusDstAlpha | 混合因子为 (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad)。 |
SrcAlphaSaturate | 混合因子为 (f, f, f, 1);其中,f = min(As, 1 - Ad)。 |
OneMinusSrcAlpha | 混合因子为 (1 - As, 1 - As, 1 - As, 1 - As)。 |
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.