1. You should probably use a more descriptive function name. Generic names like "texture" are easy to type, but when you look at your code some time from now, or share it with others, a more descriptive name will be appriciated. So instead of Texture() we'll use ApplyNoiseTexture(). 2. The problem is that you are…