How do I smooth out these ugly edges on my render target?

How do I smooth out these ugly edges or at least remove the white pixels in my render target?

https://i.imgur.com/iUIEXm0.png

https://i.imgur.com/B3Iewcd.png

Are you able to send info on how you acheived the effect - am assuming the alpha output needs to be tweaked on the edges, if you are using a colour replacement method that is for the background

We used a hacky method to make the background transparent. We put a scene capture 2d very far from the spawn until it was out of our skysphere, this glitches the render target and makes everything but the sky transparent. That’s why I used the oneminus node on the alpha channel to fix that issue and use it as a kind of hacky greenscreen.

I got OK results by tweaking the following items, maybe it will help you too:

  • Material used by the Render Target > Material Node > Opacity Mask Clip Value
  • Render Target asset > Texture Render Target 2D > HDR off
  • Render Target asset > Compression > UserInterface2D RBGA
  • Render Target asset > Texture Render Target 2D > Increasing SizeX / SizeY (probably still should be a power of 2)

Putting it to a power of 2 and putting the compression to UserInterface2D RBGA fixed the issues. Thank you so much!