I want to use a shared ImageLayer as a mask for my shaders. I have successfully implemented the example osgearth_sharedlayer in which a shape file is loaded, rasterized and used as a mask. I now want to add and remove shapes at runtime and adjust my mask layer accordingly. I have so far only managed to adjust the shapes in the ModelLayer, but I cannot rasterize them to use in the shared ImageLayer. Do you have any suggestion?