there are two ways to do it, one using a light map making program and then baking it in/using the alpha channel of the mtlfx shader, and the other is just to use the dynamic stencil shadows.