Rendering issues with Alpha channel and Layer effects
Just discovered a few major issues related to rendering.
When a effect is applied to a layer, RGB values will change.
On DX9, RGB values gets darker, anything right above the empty background is more affected. (DX8 also, but not that important)
On DX11 (non-PM) without a Effect on a Layer, RGB values are already darker, no matter if on above the empty background or another object, if there's a shader on the layer it gets even darker, specially above the empty background.
Both DX9 and DX11 non-PM get the Alpha buffer of the layer messed up as soon as a Effect is applied to a Layer, so a object that's not fully opaque will make a hole in the Alpha buffer.
On DX11 Premultiplied, everything seems fine, none of the tests above changes the Alpha or RGB values.
These happens to any object that is on a layer, it's not an issue on Actives or Backdrops but in the rendering.
Here's a gif showing it:
And a MFA for testing, with a test shader.