How to exclude PhotoDome / VideoDome from fog?


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?

It seems photodomes material autogenerate a material using backgroundMaterial Class and named photodomeName_material:
from How to do 360 Photo - Babylon.js Documentation

backgroundMaterial have the fogEnabled property: BackgroundMaterial - Babylon.js Documentation


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