Blend Off :不混合spa
Blend SrcFactor DstFactor :SrcFactor 是源係數,DstFactor是目標係數,源係數是由片斷着色器計算出來的Fragment_out,目標係數是以前累計的原色值,存儲在幀緩衝中。3d
屬性值:code
Code Resulting Factor (SrcFactor or DstFactor) One float4(1.0, 1.0, 1.0, 1.0) Zero float4(0.0, 0.0, 0.0, 0.0) SrcColor fragment_output SrcAlpha fragment_output.aaaa DstColor pixel_color DstAlpha pixel_color.aaaa OneMinusSrcColor float4(1.0, 1.0, 1.0, 1.0) - fragment_output OneMinusSrcAlpha float4(1.0, 1.0, 1.0, 1.0) - fragment_output.aaaa OneMinusDstColor float4(1.0, 1.0, 1.0, 1.0) - pixel_color OneMinusDstAlpha float4(1.0, 1.0, 1.0, 1.0) - pixel_color.aaaa
Blend OFF:不進行混合,直接輸出Fragment值;blog
Blend Zero One:只輸出幀緩衝中的值,由於幀緩衝值爲空,因此看不到物體;class
Blend One Zero:只輸出Fragment的結果;fragment