AppSrcAdd AppDstAdd

Hi,

I’m trying to find the documentation for:

Blend AppSrcAdd AppDstAdd

I can’t find those blend modes in the docs, nor can I find them being #define’d somewhere. I’m looking for the right blendmode to use for per pixellight passes, and figured it would be Blend One One. Turns out that the builtin shaders use AppSrcAdd and AppDstAdd, so I’m wondering what they do.

Bye, Lucas

AppSrcAdd and AppDstAdd basically do “multipass additive lighting” stuff. For the first pass, it uses blending of One:Zero, for later passes it uses One:One. So when writing a pixel lit shader, with multiple passes (ambient/vertexlit/pixellit), it’s enough to just write that blend mode once in subshader, and the passes will do “the right thing”.

Phew!!! This totally saved me, since AppSrcAdd and AppDstAdd no longer work in 3.0+

All is good now :smile: thanks Aras!