标签:
转自http://www.itnose.net/detail/6098539.html
Blend SrcFactor DstFactor
选项代号 |
与之等价的代码 |
One |
float4(1.0) |
Zero |
float4(0.0) |
SrcColor |
fragment_output |
SrcAlpha |
float4(fragment_output.a) |
DstColor |
pixel_color |
DstAlpha |
float4(pixel_color.a) |
OneMinusSrcColor |
float4(1.0) - fragment_output |
OneMinusSrcAlpha |
float4(1.0 - fragment_output.a) |
OneMinusDstColor |
float4(1.0) - pixel_color |
OneMinusDstAlpha |
float4(1.0 - pixel_color.a) |
解读Unity中的CG编写Shader系列七(不透明度与混合)
标签:
原文地址:http://www.cnblogs.com/mrblue/p/4595994.html