# How do I set the GlowLayer blurKernel X and Y to different values?

**URL:** https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801
**Category:** Questions
**Created:** [April 7, 2020, 10:09pm UTC](https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801 "2020-04-07T22:09:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)
#### Post date: [April 7, 2020, 10:09pm UTC](https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801/1 "2020-04-07T22:09:49Z")

</div>

In my VR headset the `MirrorTexture` and `GlowLayer` blurs appear half as wide as on a single 2D screen. This is ok for the `MirrorTexture` class because it has separate `blurKernelX` and `blurKernelY` properties for correcting the blur width when entering VR, but the `GlowLayer` class does not have separate properties for the blur X and Y. Is there another way to set the `GlowLayer` blur X and Y to different values?

`GlowLayer` on 2D screen is normal width…

 ![Annotation 2020-04-07 175141](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/eb888bc9a4832c72c3323193f67fdceb00fb630a.png)

`GlowLayer` in VR is half the normal width…

 ![OculusScreenshot1586296207](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/c/c7b36371d9197023b05aeedabe8ea35d795ba7be.jpeg)

---

<div class="post-metadata">

### Author: ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)
#### Post date: [April 8, 2020, 2:48pm UTC](https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801/2 "2020-04-08T14:48:06Z")

</div>

Pinging @sebavan

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [April 8, 2020, 4:18pm UTC](https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801/3 "2020-04-08T16:18:09Z")

</div>

In this case I would recommend to set the mainTextureFixedSize in the option providing a blur size independant from the screen. would that work for you ?

---

<div class="post-metadata">

### Author: ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)
#### Post date: [April 8, 2020, 11:36pm UTC](https://forum.babylonjs.com/t/how-do-i-set-the-glowlayer-blurkernel-x-and-y-to-different-values/9801/4 "2020-04-08T23:36:18Z")

</div>

Yes this works. Thank you!
