The effect of every gene depends both upon the environment, and upon other genes
A gene does not act alone, it gives instructions for the manufacture of a protein. Proteins act with other proteins, with substrates, etc...
All genes interact with the environment to some extent. Sometimes the contribution of the environment is small, sometimes it is very significant.