# Why MaterialBillboard components cannot write to stencil buffer?

**URL:** <https://forums.unrealengine.com/t/why-materialbillboard-components-cannot-write-to-stencil-buffer/586829>\
**Category:** FX\
**Tags:** unreal-engine, question, UE4-27\
**Created:** [June 21, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/why-materialbillboard-components-cannot-write-to-stencil-buffer/586829 "2022-06-21T14:39:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [June 21, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/why-materialbillboard-components-cannot-write-to-stencil-buffer/586829/1 "2022-06-21T14:39:05Z")

</div>

Hi,

I try to set a value ins the custom stencil, although it works fmy other objects, if I use a MaterialBillboard, nothing appears in the stencil buffer

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/7/7e7f5ae1233ac55492f108ce5003da9cdda8987e.jpeg)

I use a material like this  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/b/5bb5eca7550e93e4142b395d2bce99de15ec13bd.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/e/c4eb479009fa1cd1cc2f81d4bf4229da244ae8ab.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/b/77b476dc7d0de93cba0f2a0b196581cfe078c657.png)

and I setup my billboard in an actor with these settings

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/4/874228708a7433e73eead0cdafd03da78af6ae43.png)

any help appreciated

[edit]

as a workaround, I use a regular plane, a material function that billboards it and voila

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/a/e0ad41b3543e88d01581ed69779aa0ae04d64bbd.png)

**yet the question remains, why is it not working with built in MaterialBillboard components ?**
