i think the vertex shader would have to do the same lighting calculation (with the shadowmap, albedo and everything taken into account) as the engine does for models without any shader and then pass the result to a third stage which applies the lighting. but i don't know how the engine calculates the lighting and so a simple vertex shader example by conitec would be nice!