+4
Under review

Option to separate RGB and Alpha blending

Steven Kiesewetter 10 років тому оновлено Stefan Greulich 9 років тому 6
Would it be possible to include an option to separately blend RGB vs A?  Right now it seems to account only for RGBA as a whole, and for a shader I'm working on currently, I need to blend differently for RGB than I do A and I've got to go into the compiled shader to edit it between every ShaderForge tweak.
Sure!  Normally, blending in the shader code would be done like this...

Blend SrcAlpha OneMinusSrcAlpha

or something like that.  What I'm needing to do is this...

Blend SrcAlpha OneMinusSrcAlpha, One OneMinusSrcAlpha

The blending described after the comma is what's used for the Alpha while before the comma is what's used for RGB.

Interesting! I never knew it was useful :)
I might have to add it then, shouldn't be too hard to fix
Haha yeah, it's a weird thing to use IMO and what I'm using it for is super crazy specific.  I figured it wouldn't be too hard to add in.  Thanks for your super speedy replies!
This would be quite useful! It may be a small thing, but it adds a lot of flexibility as to what you can use the channels for.