The comments give out that there is a difference, and I believe there is at least an essential one, which is this. When you use "in" the whole environment isn't targeted, but instead some element immersed in it is or  an element *of* the environment is, whereas the use of "to" implies the understanding that the whole environment is meant ([OALD, in 1](https://www.oxfordlearnersdictionaries.com/us/definition/english/in_1?q=in), [OALD, to 8](https://www.oxfordlearnersdictionaries.com/us/definition/english/to_1?q=to)).