Mask material for photodome

@Deltakosh just wondering if it’s possible to make this work with an alpha texture? It seems to work great with geometry but when I add a texture it doesn’t. I was hoping I could achieve a more feathered mask.

https://www.babylonjs-playground.com/#14KRGG#191

Related to my recent question: Apply alpha mask texture to water material?