The present invention relates to a device for guiding light, made from a polymer material comprising different monomers arranged into a random copolymer. The random copolymer comprises at least one monomer with at least one epoxy group and at least one different monomer which is of vinyl monomer type.