# Problem sampling User Scene Texture at high resolution

**URL:** <https://forums.unrealengine.com/t/problem-sampling-user-scene-texture-at-high-resolution/2261645>\
**Category:** Rendering\
**Tags:** Post-Processing, build, unreal-engine, standalone, Rendering, question\
**Created:** [January 5, 2025, 11:06pm UTC](https://forums.unrealengine.com/t/problem-sampling-user-scene-texture-at-high-resolution/2261645 "2025-01-05T23:06:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gilotyna815](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gilotyna815](https://forums.unrealengine.com/u/gilotyna815)\
**Post date:** [January 5, 2025, 11:06pm UTC](https://forums.unrealengine.com/t/problem-sampling-user-scene-texture-at-high-resolution/2261645/1 "2025-01-05T23:06:50Z")

</div>

I’m making a 3D fog of war system and to make it I use a custom render pass as the mask for post-process material as to which areas should be hidden. It works basically as a shadow map. It works, except for high resolutions.

Here’s how it’s supposed to look and how it indeed looks in the viewport. Viewport’s size here is something random like 1600x600.

 ![shadow problem 3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/c/5fcdb4b48fba0ea02171c13a939bacccf04d6290.jpeg)

The problems appear if I resize viewport to be larger or run in standalone mode. Here’s the standalone mode at fullscreen on my 1920x1084 monitor.

 ![shadow problem 2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/3/cc304bb39515c4be8aed7dfd25c48302756e8912.jpeg)

But the problems get even worse if I run the game from a packaged build. On the same 1920x1084 monitor:

 ![shadow problem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/b/c4b1fb6da97883be66d9c61d62e8a3afac719ccf.jpeg)

I have extensively tested the materials I’m using and the problem definitely definitely stems from sampling my custom render pass. Here’s the post-process material that applies the fog of war to the scene using my custom render pass as a mask.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/c/adce7cd957dad4ec75c442bf9745e16e596a7d65.png)

For completion’s sake here’s what I write into the render pass, by sampling a depth cubemap to make a shadow map:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/2/fc229855a460007572f3475cd2f9ec9be82525b3.png)

In short: how do I get rid of the banding and bleeding of the post-process effect caused by sampling a custom render pass.

---

_[View the full topic](https://forums.unrealengine.com/t/problem-sampling-user-scene-texture-at-high-resolution/2261645)._
