# Render Target for for UI white pixel border

**URL:** <https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367>\
**Category:** Blueprint\
**Tags:** UI-UX, unreal-engine, UE4-26, question, Blueprint\
**Created:** [January 23, 2022, 1:58pm UTC](https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367 "2022-01-23T13:58:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ryde](https://forums.unrealengine.com/u/ryde)\
**Post date:** [January 23, 2022, 1:58pm UTC](https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367/1 "2022-01-23T13:58:22Z")

</div>

Im rendering a 3D model as part of the UI (character model), if I use the mask that generates from the camera capture its not tight enough against the model so it creates a single pixel white border around the model, its very ugly.

Is it possible to change the color area of the target texture to anything but white? Is that what Clear Color is for and if so why doesnt it work?

Or to make the mask a gradient mask instead of a pure white? Is there a way to generate a different mask from the same camera that is better?

 ![render_target_issue](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/b/bbb586ef1227cc182733673547bbb11eb9ff74d6.jpeg)

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [July 10, 2023, 2:28am UTC](https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367/2 "2023-07-10T02:28:43Z")

</div>

No answers??? This has been asked for years.  
Why are the settings for a professional finish on the edges of RT - using Unreal Engine 4/5 - a secret?

- I have the same setup as you. Same Texture compression (and my tex res is 2048). And get the same unprofessional outline.
- Yet I see games made with UE - their RTs look perfect.
- What is the answer?

---

<div class="post-metadata">

**Author:** ![Slaine0611](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slaine0611](https://forums.unrealengine.com/u/Slaine0611)\
**Post date:** [October 10, 2023, 3:03pm UTC](https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367/3 "2023-10-10T15:03:57Z")

</div>

No answers yet?  
Did you guys solve it?

Edit: Just solved it.  
I needed to tick off every show flag in the SceneCaptureComponent except Static and Skeletal Meshes.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/a/99aadbb4b1b2a207831b22409ecf7bbb36c32aee.jpeg)

---

<div class="post-metadata">

**Author:** ![Rishi\_Jayanthan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rishi\_Jayanthan](https://forums.unrealengine.com/u/Rishi_Jayanthan)\
**Post date:** [October 18, 2023, 6:45am UTC](https://forums.unrealengine.com/t/render-target-for-for-ui-white-pixel-border/274367/4 "2023-10-18T06:45:09Z")

</div>

It worked! Thanks man!!
