Simply put, I want to have part of the UMG to display the negative colors of the scene. How should I do it?
My current solution is creating a regular material, using scene color node and 1-x node to get the negative colors, applying this material to a 2D sprite, and always placing the sprite in front of the player camera. That seems a hack (?).
When I try to create an image in UMG and add that material to the image, the editor tells me the material has to switch from surface to user interface domain, where unfortunately the scene color node cannot be used. :’<
Add a post process volume to your scene if you scene does not include one already. A post process setting is like an instagram filer for your game.
Make sure the post process volume has the “Unbound” setting checked, basicly this will tell the filter to apply to the entire scene, not just to the items inside of the volume
Create a material (your filter), and change the material settings as follows: