this next part is where a lot of the new complexity comes in.

these for loops inside an if else statement measure either the width or height of the texture before it runs out, if there's plenty of texture it will simply copy until whatever number intensity was set to has been reached, otherwise, the number of texel distance is recorded on a float variable called texBreadth.