Geometry can still cast static shadow when invisible. All you have to do is instead of setting the invisible flag on, just set all the sides of the geomtry to 'none'.