How to model a dichroic beam splitter