# Clear back buffer in stencil area \[C++\]

**URL:** <https://forums.unrealengine.com/t/clear-back-buffer-in-stencil-area-c/357589>\
**Category:** Rendering\
**Tags:** source-code, buffer, unreal-engine, Rendering, question, CPP\
**Created:** [May 16, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/clear-back-buffer-in-stencil-area-c/357589 "2016-05-16T14:29:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DennG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DennG](https://forums.unrealengine.com/u/DennG)\
**Post date:** [May 16, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/clear-back-buffer-in-stencil-area-c/357589/1 "2016-05-16T14:29:05Z")

</div>

I want to know how clear the backbuffer in the stencil area and I already found the function ClearMRT, but there are two parameters that bother me:  
NumClearColors and ExcludeRect

Could someone give some explanation on those please?

This is what I setup so far (via C++):

 ![90739-unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/f/85febf62230c2697dbc5436dcb7b2e913b30e702.jpeg)
