Nevermind, theThe actual problem was that the gradient repeat cannot be disabled on the gradient itself, which caused the issues iI experienced. Se the answer here:See https://gamedev.stackexchange.com/a/203054/167104this answer for more information.