# How to exclude PhotoDome / VideoDome from fog?

**URL:** <https://forum.babylonjs.com/t/how-to-exclude-photodome-videodome-from-fog/7254>\
**Category:** Questions\
**Created:** [November 27, 2019, 4:14pm UTC](https://forum.babylonjs.com/t/how-to-exclude-photodome-videodome-from-fog/7254 "2019-11-27T16:14:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CLB\_ZReality](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/clb_zreality/32/4293_2.png) [@CLB\_ZReality](https://forum.babylonjs.com/u/CLB_ZReality)\
**Post date:** [November 27, 2019, 4:14pm UTC](https://forum.babylonjs.com/t/how-to-exclude-photodome-videodome-from-fog/7254/1 "2019-11-27T16:14:05Z")

</div>

Hey,

i have a scene with fog enabled. Sometimes i want to jump into PhotoDomes or VideoDomes but i cant see anything because of the fog. Normally you can exclude objects by changing their material: material.fogEnabled = false. But neither PhotoDome nor VideoDome have a “material” property you could change. So how would i exclude them from fog?

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [November 27, 2019, 4:29pm UTC](https://forum.babylonjs.com/t/how-to-exclude-photodome-videodome-from-fog/7254/2 "2019-11-27T16:29:11Z")

</div>

It seems photodomes material autogenerate a material using backgroundMaterial Class and named _photodomeName_\_material:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/4c85def2693e46498371736ea8f94416ce0e4856.png)  
_from [How to do 360 Photo - Babylon.js Documentation](https://doc.babylonjs.com/how_to/360photodome)_

backgroundMaterial have the fogEnabled property: [BackgroundMaterial - Babylon.js Documentation](https://doc.babylonjs.com/api/classes/babylon.backgroundmaterial#fogenabled)

---

<div class="post-metadata">

**Author:** ![CLB\_ZReality](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/clb_zreality/32/4293_2.png) [@CLB\_ZReality](https://forum.babylonjs.com/u/CLB_ZReality)\
**Post date:** [November 27, 2019, 6:01pm UTC](https://forum.babylonjs.com/t/how-to-exclude-photodome-videodome-from-fog/7254/3 "2019-11-27T18:01:00Z")

</div>

Thanks a lot! Getting this material and changing it’s fogEnabled property works perfectly!
