SetBlendState in BatchedElements.cpp should “Translates a ESimpleElementBlendMode into a RHI state change for rendering a mesh with the blend mode normally”.
However I noticed that it changes the BlendMode argument value when HDR and a few UI cvars are enabled.
I think this should be done in the caller of this SetBlendState and only if the rendering is about UI.
Isn’t this going to change the BlendMode of other non UI canvas rendering?
This code was added with DX11 HDR support in UE4 days and is mostly used for debug and editor primitives. I agree we should improve how the BlendMode gets changed for HDR compositing.
Was there a specific use case where you ran into this issue?
Apologies for the delay - I’ve created the following issue which should be visible soon https://issues.unrealengine.com/issue/UE\-370940\. It’s unlikely this will be a priority in the near term, but if you find cases where this is affecting your project please let us know or feel free to send in a pull request for us to look at that addresses the issue.