If stencil shadows are enabled, shadows should also work on mdl entities...

Code:

shadow_stencil = on;