Custom Stencil

Upscaled Custom Stencil

The Sample Upscaled Custom Stencil node works exactly like the SceneTextures:CustomStencil node found in stock UE5. It will sample the current screen position if not UVs are supplied or you can customize the UVs that you want to sample from.

The goal of this node, and the underlying accumulated CustomStencil is to approximate what TSR does for the SceneColor that you see, where it will use a few frames of history to reproduce a higher resolution version of the rendered image, than is actually rendered by the base pass. This also solves the jitter that you can see with more aggressive TSR upscales in effects that use the CustomStencil in later stage post process materials.

For more information on the SceneTexture Node can be found here!

Custom Stencil Node Custom Stencil Node