Fix shadowmapPlugin for visibility