Modeling of RR Lyrae light curves: the case of M3