- Home /
[Shader] How to use Blend SrcFactor DstFactor, SrcFactorA DstFactorA
I have done lot of searching about how to get it to work since a very long time ago but no matter what factors I put in and what platform or project settings I switched to, I can never seen any difference between using Blend SrcFactor DstFactor, SrcFactorA DstFactorA and Blend SrcFactor DstFactor
the factors in SrcFactorA DstFactorA part is always being ignored.
Can anyone help?
never used that. but as I know the later part only affect alpha channel, which means you can't actually 'see' the difference. The later part are needed only if you need to use DestAlpha in blending method. But usually we only need SrcAlpha for the calculation
Thanks so much for your comment! So does it mean that in normal case DstAlpha is always equals to 1, so nothing will be affected no matter what I input for calculating the alpha channel seperately?
Answer by meat5000 · Aug 05, 2015 at 09:43 AM
Thanks for sharing this great information^^ I read it and it gives clear idea about alpha and alpha blending.
But I still cannot find a way to make an example that the syntax "Blend SrcFactor DstFactor, SrcFactorA DstFactorA" would work with visual difference.
I've also read quite a lot forum posts and I know that shaders with colormask RGB as a default wont write to buffer and thus separate alpha channel blending woudnt work in this case. I've tried all the suggested workout in those posts but can never see any difference between using/without using separate alpha channel blending.